mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 18:11:37 +02:00
🔧 Increase the cap for gradient stops
This commit is contained in:
parent
281c0068d9
commit
ab90d9d01c
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
(def ^:private GRADIENT-STOP-SIZE 8)
|
(def ^:private GRADIENT-STOP-SIZE 8)
|
||||||
(def ^:private GRADIENT-BASE-SIZE 28)
|
(def ^:private GRADIENT-BASE-SIZE 28)
|
||||||
;; TODO: Define in shape model
|
;; TODO: Define in shape model
|
||||||
(def ^:private MAX-GRADIENT-STOPS 8)
|
(def ^:private MAX-GRADIENT-STOPS 16)
|
||||||
|
|
||||||
(def GRADIENT-BYTE-SIZE
|
(def GRADIENT-BYTE-SIZE
|
||||||
(+ GRADIENT-BASE-SIZE (* MAX-GRADIENT-STOPS GRADIENT-STOP-SIZE)))
|
(+ GRADIENT-BASE-SIZE (* MAX-GRADIENT-STOPS GRADIENT-STOP-SIZE)))
|
||||||
|
|
|
@ -3,7 +3,7 @@ use skia_safe::{self as skia, Rect};
|
||||||
use super::Color;
|
use super::Color;
|
||||||
use crate::uuid::Uuid;
|
use crate::uuid::Uuid;
|
||||||
|
|
||||||
const MAX_GRADIENT_STOPS: usize = 8;
|
const MAX_GRADIENT_STOPS: usize = 16;
|
||||||
const BASE_GRADIENT_DATA_SIZE: usize = 28;
|
const BASE_GRADIENT_DATA_SIZE: usize = 28;
|
||||||
const RAW_GRADIENT_DATA_SIZE: usize =
|
const RAW_GRADIENT_DATA_SIZE: usize =
|
||||||
BASE_GRADIENT_DATA_SIZE + RAW_STOP_DATA_SIZE * MAX_GRADIENT_STOPS;
|
BASE_GRADIENT_DATA_SIZE + RAW_STOP_DATA_SIZE * MAX_GRADIENT_STOPS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue