Skip to content

Different modes for PyPen #17

@EriKWDev

Description

@EriKWDev

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.CENTER

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions