samples/processing_app/topics/shaders/bw_shader.rb in ruby-processing-2.6.2 vs samples/processing_app/topics/shaders/bw_shader.rb in ruby-processing-2.6.3

- old
+ new

@@ -24,10 +24,10 @@ texture_mode(NORMAL) sh = create_shape sh.begin_shape(QUAD_STRIP) sh.no_stroke sh.texture(tex) - (0 .. detail).each do |i| + (0..detail).each do |i| angle = TAU / detail x = sin(i * angle) z = cos(i * angle) u = i.to_f / detail sh.normal(x, 0, z)