write masks, colours and hash constants in hex

sexc reads hex literals now (sex#47). The OpenSimplex constants are
spelled as the C# spells them, and the colours as the comments that
stood in for them did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 18:09:08 +03:00
parent 9bc1167782
commit 74200559b8
9 changed files with 65 additions and 110 deletions

View File

@@ -240,9 +240,7 @@
(for (var i int 0) (< i (. in cap)) (++ i)
(if (== [(. in state) i] 1)
(.put set (+ x0 (cast (>> [(. in keys) i] 32) i32))
;; TODO sex#47: write the mask in hex once there are hex
;; literals.
(+ z0 (cast (& [(. in keys) i] 4294967295) i32)) 1))))
(+ z0 (cast (& [(. in keys) i] 0xFFFFFFFF) i32)) 1))))
(pub fn release ((self (* natural-shape))) void
(free (. self slots))