Skip to content

Commit 3735acb

Browse files
committed
correct web_color to color_array examples
1 parent fce1197 commit 3735acb

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

basics/color/colors_two.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def settings
1313

1414
def setup
1515
sketch_title 'Homage to Albers'
16-
# palette = from_web_array(['#CC6600', '#CC9900', '#993300'].to_java(:string))
17-
palette = from_web_array(['#CC6600', '#CC9900', '#993300'])
16+
# palette = web_to_color_array(['#CC6600', '#CC9900', '#993300'].to_java(:string))
17+
palette = web_to_color_array(['#CC6600', '#CC9900', '#993300'])
1818
# @redder = color 204, 102, 0
1919
# @yellower = color 204, 153, 0
2020
# @orangish = color 153, 51, 0

basics/color/creating_colors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def settings
1414

1515
def setup
1616
sketch_title 'Homage to Albers'
17-
palette = from_web_array(WEB)
17+
palette = web_to_color_array(WEB)
1818
@redder = palette[0]
1919
@yellower = palette[1]
2020
@orangish = palette[2]

demo/arc_tesselation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setup
2121
sketch_title 'Arc Tesselation'
2222
# create a java primitive array of signed int
2323
# @cols = web_to_color_array(PALETTE)
24-
@group = ColorGroup.from_web_array(PALETTE)
24+
@group = ColorGroup.web_to_color_array(PALETTE)
2525
@cols = group.colors
2626
stroke_weight 1.5
2727
stroke_cap SQUARE

demo/reflection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def draw
1414
background 0
1515
translate width / 2, height / 2
1616
lights
17-
light_specular 1, 1, 1
18-
directional_light 0.8, 0.8, 0.8, 0, 0, -1
17+
# light_specular 1, 1, 1
18+
# directional_light 0.8, 0.8, 0.8, 0, 0, -1
1919
specular mouse_x.to_f / width.to_f
2020
sphere 50
2121
end

external_library/gems/ruby_wordcram/fruits.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'ruby_wordcram'
33

44
# Literate colors from picrate
5-
# uses `from_web_array` to create a hash of fruity colors
5+
# uses `web_to_color_array` to create a hash of fruity colors
66
# to join two words as `cherry\ red` use back slash
77
class Fruits < Processing::App
88

shaders/metaballs.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env jruby -w
12
require 'picrate'
23

34
class Metaballs < Processing::App

0 commit comments

Comments
 (0)