Generate an HSV color picker squareGenerate an HSV color picker square
Given a hue between 0° and 360°, generate an image file or display an image of an HSV (hue-saturation-value) color picker square for that hue, e.g. for the input 123:
The output must be a square at least 256 pixels on a side with saturation varying from 0.0% to 100.0% left-to-right and value varying from 100.0% to 0.0% top-to-bottom. Each pixel should be a unique color, but rounding errors causing adjacent pixels to be equal are allowed.
Input
The input will be a single integer between 0 and 360 inclusive representing the hue in degrees.
Output
The output must either be displayed on the screen or written to a file or stdout in a common image file format.
Entries must include an example image file, screenshot, or snippet (for HTML/CSS/JavaScript entries).
Output using a lossy file format (such as the PNG above) will necessarily have compression artifacts that may affect the uniqueness or order of the pixels. This is allowed.
Rules
- Standard rules apply. Standard loopholes are forbidden.
