Skip to content

Commit 7134c9c

Browse files
author
monkstone
committed
Make it look different
1 parent 3e0ba2b commit 7134c9c

File tree

1 file changed

+3
-3
lines changed
  • samples/processing_app/library/sound

1 file changed

+3
-3
lines changed

samples/processing_app/library/sound/sample.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
def setup
1313
size 640, 360
14-
background 255
1514
no_stroke
1615
# Load a soundfile
1716
@sound_file = SoundFile.new(self, 'vibraphon.aiff')
@@ -21,10 +20,11 @@ def setup
2120
end
2221

2322
def draw
23+
background 40, 1
2424
red = map1d(mouse_x, (0..width), (30..255))
2525
green = map1d(mouse_y, (height..0), (30..255))
26-
fill(red, green, 0, 100)
27-
ellipse(mouse_x, mouse_y, 10, 10)
26+
fill(red, green, 0)
27+
ellipse(mouse_x, mouse_y, 30, 30)
2828
manipulate_sound
2929
end
3030

0 commit comments

Comments
 (0)