-
Notifications
You must be signed in to change notification settings - Fork 0
Different modes for PyPen #17
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
We should probably allow for some different modes in PyPen. These modes could include, for example, angle_mode, rectangle_mode and color_mode.
rectangle_mode
Draw rectangles/squares from the center or from the top-left corner
angle_mdoe
Use either radians or degrees
color_mode
if a color is supplied as a tuple/array like (20, 20, 20), the Color.from_user_input automatically interprets it as rgb(a)-values. A settings.color_mode could change this behaviour and instead interpret them as hsv, hsl or other modes.
This could of course be overwritten if the color is supplied as a string like "rgb(20, 20, 20)" or "hsv(20, 20, 20)".
Implementation
These could live in settings and be identified using strings or build-in enums. For example: (strings)
settings.rectangle_mode = "center" # or "normal"or with enums
settings.rectangle_mode = RectangleModes.CENTERReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request