samples/07_advanced_rendering/03_render_target_viewports/app/main.rb
def lines_tech_demo
    outputs.labels << [5, 500, "Lines (x, y, x2, y2, r, g, b, a)"]
    outputs.lines  << [5, 450, 100, 450]
    outputs.lines  << [5, 430, 300, 430]
    outputs.lines  << [5, 410, 300, 410, state.tick_count % 255, 0, 0, 255] # red saturation changes
    outputs.lines  << [5, 390 - state.tick_count % 25, 300, 390, 0, 0, 0, 255] # y position changes
    outputs.lines  << [5 + state.tick_count % 200, 360, 300, 360, 0, 0, 0, 255] # x position changes
  end
# Shows output of lines on the screen
Shows output of lines on the screen
Shows output of lines on the screen
def lines_tech_demo
    outputs.labels << [5, 500, "Lines (x, y, x2, y2, r, g, b, a)"]
    outputs.lines  << [5, 450, 100, 450]
    outputs.lines  << [5, 430, 300, 430]
    outputs.lines  << [5, 410, 300, 410, state.tick_count % 255, 0, 0, 255] 
    outputs.lines  << [5, 390 - state.tick_count % 25, 300, 390, 0, 0, 0, 255] 
    outputs.lines  << [5 + state.tick_count % 200, 360, 300, 360, 0, 0, 0, 255] 
  end
def lines_tech_demo outputs . labels << [ 5 , 500 , "Lines (x, y, x2, y2, r, g, b, a)" ] outputs . lines << [ 5 , 450 , 100 , 450 ] outputs . lines << [ 5 , 430 , 300 , 430 ] outputs . lines << [ 5 , 410 , 300 , 410 , state . tick_count % 255 , 0 , 0 , 255 ] outputs . lines << [ 5 , 390 - state . tick_count % 25 , 300 , 390 , 0 , 0 , 0 , 255 ] outputs . lines << [ 5 + state . tick_count % 200 , 360 , 300 , 360 , 0 , 0 , 0 , 255 ] end
Shows output of lines on the screen
Shows output of lines on the screen
# red saturation changes # y position changes # x position changes