samples/01_rendering_basics/03_solids_borders/app/main.rb
def tick args
  tick_instructions args, "Sample app shows how to create solid squares."
  args.outputs.labels << [460, 600, "Solids (x, y, w, h, r, g, b, a)"]
  args.outputs.solids << [470, 520, 50, 50]
  args.outputs.solids << [530, 520, 50, 50, 0, 0, 0]
  args.outputs.solids << [590, 520, 50, 50, 255, 0, 0]
  args.outputs.solids << [650, 520, 50, 50, 255, 0, 0, 128]
  args.outputs.solids << [710, 520, 50, 50, 0, 0, 0, 128 + args.state.tick_count % 128]


  args.outputs.labels <<  [460, 400, "Borders (x, y, w, h, r, g, b, a)"]
  args.outputs.borders << [470, 320, 50, 50]
  args.outputs.borders << [530, 320, 50, 50, 0, 0, 0]
  args.outputs.borders << [590, 320, 50, 50, 255, 0, 0]
  args.outputs.borders << [650, 320, 50, 50, 255, 0, 0, 128]
  args.outputs.borders << [710, 320, 50, 50, 0, 0, 0, 128 + args.state.tick_count % 128]
end
# Whether the rect would be filled or not depends on if
# it is added to args.outputs.solids or args.outputs.borders
Whether the rect would be filled or not depends on if
it is added to args.outputs.solids or args.outputs.borders
Whether the rect would be filled or not depends on if it is added to args . outputs . solids or args . outputs . borders
def tick args
  tick_instructions args, "Sample app shows how to create solid squares."
  args.outputs.labels << [460, 600, "Solids (x, y, w, h, r, g, b, a)"]
  args.outputs.solids << [470, 520, 50, 50]
  args.outputs.solids << [530, 520, 50, 50, 0, 0, 0]
  args.outputs.solids << [590, 520, 50, 50, 255, 0, 0]
  args.outputs.solids << [650, 520, 50, 50, 255, 0, 0, 128]
  args.outputs.solids << [710, 520, 50, 50, 0, 0, 0, 128 + args.state.tick_count % 128]
  args.outputs.labels <<  [460, 400, "Borders (x, y, w, h, r, g, b, a)"]
  args.outputs.borders << [470, 320, 50, 50]
  args.outputs.borders << [530, 320, 50, 50, 0, 0, 0]
  args.outputs.borders << [590, 320, 50, 50, 255, 0, 0]
  args.outputs.borders << [650, 320, 50, 50, 255, 0, 0, 128]
  args.outputs.borders << [710, 320, 50, 50, 0, 0, 0, 128 + args.state.tick_count % 128]
end
def tick args tick_instructions args , "Sample app shows how to create solid squares." args . outputs . labels << [ 460 , 600 , "Solids (x, y, w, h, r, g, b, a)" ] args . outputs . solids << [ 470 , 520 , 50 , 50 ] args . outputs . solids << [ 530 , 520 , 50 , 50 , 0 , 0 , 0 ] args . outputs . solids << [ 590 , 520 , 50 , 50 , 255 , 0 , 0 ] args . outputs . solids << [ 650 , 520 , 50 , 50 , 255 , 0 , 0 , 128 ] args . outputs . solids << [ 710 , 520 , 50 , 50 , 0 , 0 , 0 , 128 + args . state . tick_count % 128 ] args . outputs . labels << [ 460 , 400 , "Borders (x, y, w, h, r, g, b, a)" ] args . outputs . borders << [ 470 , 320 , 50 , 50 ] args . outputs . borders << [ 530 , 320 , 50 , 50 , 0 , 0 , 0 ] args . outputs . borders << [ 590 , 320 , 50 , 50 , 255 , 0 , 0 ] args . outputs . borders << [ 650 , 320 , 50 , 50 , 255 , 0 , 0 , 128 ] args . outputs . borders << [ 710 , 320 , 50 , 50 , 0 , 0 , 0 , 128 + args . state . tick_count % 128 ] end
Whether the rect would be filled or not depends on if
it is added to args.outputs.solids or args.outputs.borders
Whether the rect would be filled or not depends on if it is added to args . outputs . solids or args . outputs . borders
args