summaryrefslogtreecommitdiff
path: root/chapter31/docs/examples/Graphics.smp
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-11-14 12:41:16 -0800
committerCliff Click <cliffc@acm.org>2026-11-14 12:41:16 -0800
commit3d0f3f38d9d8345b6508b3289dc94b0500c53d9e (patch)
tree1b769cdc4e415fad5c1b18afa23ffc6fe56db18a /chapter31/docs/examples/Graphics.smp
parentafcf96444366fb4b7c83f938763013cbc360aade (diff)
downloadSimple-3d0f3f38d9d8345b6508b3289dc94b0500c53d9e.tar.gz
Simple-3d0f3f38d9d8345b6508b3289dc94b0500c53d9e.zip
Breakout, Clock demos
Math lib with simple constants raw bit converters TypeConAry unified Big Formatting change Debug symbols for constant data IterPeeps was endlessly running asserts with much inlining RegAlloc rounds raised
Diffstat (limited to 'chapter31/docs/examples/Graphics.smp')
-rw-r--r--chapter31/docs/examples/Graphics.smp4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter31/docs/examples/Graphics.smp b/chapter31/docs/examples/Graphics.smp
index 7ba5c6e7..8b251fa2 100644
--- a/chapter31/docs/examples/Graphics.smp
+++ b/chapter31/docs/examples/Graphics.smp
@@ -3,8 +3,8 @@
val main = { u8[~][] args ->
if( sys.gfx.open("Simple pixels",320,240) != sys.gfx.OK ) return 1;
val pixels = new u32[320*240];
- for( int y=0; y<240; y++ )
- for( int x=0; x<320; x++ )
+ for( int y = 0; y < 240; y++ )
+ for( int x = 0; x < 320; x++ )
pixels[y*320+x] = (x*255/319 << 16) | (y*255/239 << 8) | 64;
int result = sys.gfx.present(pixels);
int frames = 0;