Skip to content
Snippets Groups Projects
Commit 066f99f5 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

New hue pattern

parent 7b7513a6
No related branches found
No related tags found
No related merge requests found
...@@ -128,8 +128,10 @@ draw = () -> ...@@ -128,8 +128,10 @@ draw = () ->
x = radius * Math.cos theta x = radius * Math.cos theta
y = radius * Math.sin theta y = radius * Math.sin theta
# One rainbow per octave # Hop around between almost-opposing colors, eventually going
hue = (p.note.key - 60 + 0.1) / 12.0 # around the rainbow. These ratios control what kinds of color
# schemes we get for different chords.
hue = (p.note.key - 60 + 0.1) * (7 / 12.0)
p.color = OPC.hsv hue, 0.5, 0.8 p.color = OPC.hsv hue, 0.5, 0.8
# Intensity mapped to velocity, nonlinear # Intensity mapped to velocity, nonlinear
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment