Skip to content

The bulbs glow a distinctive amber. It's like nostalgia but for something you never had.

License

Notifications You must be signed in to change notification settings

taciturnaxolotl/neon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo
Neon

The bulbs glow a distinctive amber. It's like nostalgia but for something you never had.

What's this?

This is my submission for the Hackclub Neon YSWS! I cycled through quite a few ideas before settling on a hackatime dashboard! It's a simple, clean, and minimalistic dashboard that displays the time coding for the day!

Standard Lib

My project comes with a standard library of graphics primitives to help you get started quickly. Here are the key functions with example usage:

from graphics import Graphics

# Initialize the display
graphics = Graphics()

# Drawing lines
graphics.draw_line(0, 0, 63, 31, COLORS["line"])  # x1, y1, x2, y2, color

# Drawing rectangles
graphics.draw_rectangle(5, 5, 20, 10, COLORS["bar"])  # x, y, width, height, color

# Drawing circles
graphics.draw_circle(40, 16, 8, COLORS["circle"])  # center_x, center_y, radius, color

# Drawing Bezier curves
graphics.draw_curve([(0, 0), (4,25), (63, 31)], COLORS["curve"])  # control points, color

# Drawing polygons 
graphics.draw_polygon([(45, 16), (40, 32), (63, 31)], COLORS["polygon"], True)  # points, color, fill

# Drawing text
graphics.draw_text(3, 21, "3.2", COLORS["text"], 1)  # x, y, text, color, size

# Filling the display
graphics.fill(COLORS["background"])  # Fills entire display with color

# Updating the display
graphics.refresh()  # Refreshes display buffer

The library handles all the low-level matrix display setup including pin configuration and color palette management. Colors are defined using hex values (0xRRGGBB format) and automatically mapped to the 16-bit color space.

© 2025-present Kieran Klukas

About

The bulbs glow a distinctive amber. It's like nostalgia but for something you never had.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Languages