Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • F firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • card10card10
  • firmware
  • Merge requests
  • !25

color.py - add some more color methods

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged wink requested to merge wink/firmware:color-2 into master Jul 19, 2019
  • Overview 9
  • Commits 1
  • Pipelines 2
  • Changes 1

Adds a few methods to the color module

  • to_hsv() -> [h, s, v]
  • to_hsl() -> [h, s, l]
  • get_complementary() -> Color
  • change_hue()
  • change_saturation_hsv()
  • change_saturation_hsl()
  • change_value()
  • change_lightness()
  • darken() (uses change_sat_hsl)
  • brighten() (uses change_sat_hsl)
  • __mul__() -> Color
  • __add__() -> Color
  • __sub__() -> Color
Edited Jul 19, 2019 by wink
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: color-2