From b6cbc69461dc054019f50f8971704f6ef9de63ab Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 18 Mar 2025 12:47:22 +0100 Subject: language: [array] and {struct} literals --- examples/love.alv | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/love.alv b/examples/love.alv index 71a8287..113ea2d 100644 --- a/examples/love.alv +++ b/examples/love.alv @@ -3,17 +3,17 @@ The size changes when the left mouse button is held, and the color changes when space is pressed. ) -([1]import* love math time array-) +([1]import* love math time array) ([20]def #(cycle colors when space is pressed) fill-color ([21]switch ([22]key-presses "space") - ([23]array 0.3 0 0.9) - ([24]array 0 0.9 0.3) - ([27]array 0.9 0.3 0) - ([28]array 0.3 0.9 0) - ([30]array 0 0.3 0.9) - ([31]array 0.9 0 0.3)) + [0.3 0 0.9] + [0 0.9 0.3] + [0.9 0.3 0] + [0.3 0.9 0] + [0 0.3 0.9] + [0.9 0 0.3]) #(smooth out rgb channels individually) smooth-color ([36]map fill-color -- cgit v1.2.3