def setup size 640, 250 background 10 f = createFont("Arial", 24, true) third = 1 / 3r # since ruby 2.1.0 quarter = 1 / 4r add = format("%s + %s = %s", third, quarter, third + quarter) subtract = format("%s - %s = %s", third, quarter, third - quarter) multiply = format("%s * %s = %s", third, quarter, third * quarter) text_font(f, 24) fill(220) text("Math blackboard ruby-processing", 80, 50) text(add, 110, 100) text(subtract, 110, 150) text(multiply, 110, 200) end
PS: this one of the sketches not affected by draw loop bug. May'be we don't need to wait too long for a preview version?
@aselder Rough timeframe for a final is hopefully end of January. Will attempt a preview after MRI 2.2 is out.
— Charles Nutter (@headius) December 16, 2014
No comments:
Post a Comment