compositiongrid.lua 692 B

1234567891011121314151617181920212223242526272829303132
  1. for q=0,height-1,1 do
  2. set_rgb(width*.25,q,1,0,0)
  3. set_rgb(width*.5,q,1,0,0)
  4. set_rgb(width*.75,q,1,0,0)
  5. set_rgb(width*.618,q,0,1,0)
  6. set_rgb(width*.382,q,0,1,0)
  7. end
  8. for q=0,width-1,1 do
  9. set_rgb(q,height*.25,1,0,0)
  10. set_rgb(q,height*.5,1,0,0)
  11. set_rgb(q,height*.75,1,0,0)
  12. set_rgb(q,height*.618,0,1,0)
  13. set_rgb(q,height*.382,0,1,0)
  14. end
  15. if width>height then
  16. for q=0,height-1,1 do
  17. set_rgb(q,q,0,0,1)
  18. set_rgb(q,height-q,0,0,1)
  19. set_rgb(width-q,q,0,0,1)
  20. set_rgb(width-q,height-q,0,0,1)
  21. end
  22. else
  23. for q=0,width-1,1 do
  24. set_rgb(q,q,0,0,1)
  25. set_rgb(q,height-q,0,0,1)
  26. set_rgb(width-q,q,0,0,1)
  27. set_rgb(width-q,height-q,0,0,1)
  28. end
  29. end
  30. flush()