Skip to content

API reference / Common / Engine types / PaintGradientShade

Type Alias: PaintGradientShade ​

ts
type PaintGradientShade = 
  | {
  linear: {
     angle: number;
     scaled: boolean;
  };
}
  | {
  path: {
     kind: PaintPathShade;
     fillTo: PaintRelativeRect | null;
  };
};

Linear vs. path shading for a [PaintGradientFill] — the a:lin / a:path choice.