mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
fix "i?SCREEN = 0" being parsed as "i?(SCREEN = 0)"
This commit is contained in:
@@ -22,7 +22,7 @@ start fn gen_palette() {
|
||||
let lazy a = max(llimit, min(ulimit, c)) * (scale + 0.05);
|
||||
let lazy b = scale * scale * 0.8;
|
||||
let inline v = (select(i < 11*16*3, max(0 as f32, min(a + b - a * b, 1 as f32)), scale) * 255 as f32) as i32;
|
||||
(i%3 + i/3*4)?(PALETTE) = v;
|
||||
(i%3 + i/3*4)?PALETTE = v;
|
||||
avg = (avg + c) * 0.5;
|
||||
|
||||
branch_if i := i - 1: gradients;
|
||||
@@ -37,7 +37,7 @@ start fn gen_palette() {
|
||||
let inline src2 = select(first_step, (index + 1) % 32 / 2, index * 2 + 1);
|
||||
let inline c1 = (src1 * 4 + channel)?SWEETY;
|
||||
let inline c2 = (src2 * 4 + channel)?SWEETY;
|
||||
i?(SWEETY) = (c1 + c2) * (3 + first_step) / 8;
|
||||
i?SWEETY = (c1 + c2) * (3 + first_step) / 8;
|
||||
|
||||
branch_if (i := i - 1) >= 0: expand_sweetie;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user