From 294b712e6dabc722772f86aaa9d0faaa08c14717 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 11 Mar 2025 13:18:30 -0400 Subject: Don't use '$' prefix for field names --- examples/game/color.tm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/game') diff --git a/examples/game/color.tm b/examples/game/color.tm index f8702570..fef12e60 100644 --- a/examples/game/color.tm +++ b/examples/game/color.tm @@ -12,12 +12,12 @@ struct Color(r,g,b:Num,a=1.0): func draw_rectangle(c:Color, pos:Vec2, size:Vec2): inline C { DrawRectangle( - (int)(_$pos.$x), (int)(_$pos.$y), (int)(_$size.$x), (int)(_$size.$y), + (int)(_$pos.x), (int)(_$pos.y), (int)(_$size.x), (int)(_$size.y), ((Color){ - (int8_t)(uint8_t)(255.*_$c.$r), - (int8_t)(uint8_t)(255.*_$c.$g), - (int8_t)(uint8_t)(255.*_$c.$b), - (int8_t)(uint8_t)(255.*_$c.$a), + (int8_t)(uint8_t)(255.*_$c.r), + (int8_t)(uint8_t)(255.*_$c.g), + (int8_t)(uint8_t)(255.*_$c.b), + (int8_t)(uint8_t)(255.*_$c.a), }) ); } -- cgit v1.2.3