mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 02:21:36 +02:00
✨ Embed stop data into RawGradientData
This commit is contained in:
parent
e7b74939cb
commit
281c0068d9
3 changed files with 69 additions and 38 deletions
|
@ -223,7 +223,7 @@
|
|||
(h/call wasm/internal-module "_add_shape_solid_fill" rgba))
|
||||
|
||||
(some? gradient)
|
||||
(let [size (sr-fills/gradient-byte-size gradient)
|
||||
(let [size sr-fills/GRADIENT-BYTE-SIZE
|
||||
offset (mem/alloc-bytes size)
|
||||
heap (mem/get-heap-u32)]
|
||||
(sr-fills/write-gradient-fill! offset heap gradient opacity)
|
||||
|
@ -269,7 +269,7 @@
|
|||
|
||||
(cond
|
||||
(some? gradient)
|
||||
(let [size (sr-fills/gradient-byte-size gradient)
|
||||
(let [size sr-fills/GRADIENT-BYTE-SIZE
|
||||
offset (mem/alloc-bytes size)
|
||||
heap (mem/get-heap-u32)]
|
||||
(sr-fills/write-gradient-fill! offset heap gradient opacity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue