Color wheel

From Fōrmulæ wiki
Jump to: navigation, search

This page is a solution to the task Color wheel in the Rosetta Code, written in Fōrmulæ.

Description (from Rosetta Code)


Write a function to draw a HSV color wheel completely with code.

This is strictly for learning purposes only. It's highly recommended that you use an image in an actual application to actually draw the color wheel   (as procedurally drawing is super slow). This does help you understand how color wheels work and this can easily be used to determine a color value based on a position within a circle.