diff --git a/frontend/src/app/render_wasm/serializers/fills.cljs b/frontend/src/app/render_wasm/serializers/fills.cljs index b5a12433e..f4f395b66 100644 --- a/frontend/src/app/render_wasm/serializers/fills.cljs +++ b/frontend/src/app/render_wasm/serializers/fills.cljs @@ -5,7 +5,7 @@ (def ^:private GRADIENT-STOP-SIZE 8) (def ^:private GRADIENT-BASE-SIZE 28) ;; TODO: Define in shape model -(def ^:private MAX-GRADIENT-STOPS 8) +(def ^:private MAX-GRADIENT-STOPS 16) (def GRADIENT-BYTE-SIZE (+ GRADIENT-BASE-SIZE (* MAX-GRADIENT-STOPS GRADIENT-STOP-SIZE))) diff --git a/render-wasm/src/shapes/fills.rs b/render-wasm/src/shapes/fills.rs index 6e57022ef..f85ba7506 100644 --- a/render-wasm/src/shapes/fills.rs +++ b/render-wasm/src/shapes/fills.rs @@ -3,7 +3,7 @@ use skia_safe::{self as skia, Rect}; use super::Color; use crate::uuid::Uuid; -const MAX_GRADIENT_STOPS: usize = 8; +const MAX_GRADIENT_STOPS: usize = 16; const BASE_GRADIENT_DATA_SIZE: usize = 28; const RAW_GRADIENT_DATA_SIZE: usize = BASE_GRADIENT_DATA_SIZE + RAW_STOP_DATA_SIZE * MAX_GRADIENT_STOPS;