1.18.0 • Published 5 years ago

@pencil.js/radial-gradient v1.18.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Radial-gradient

Circular gradient transition of color(s) between a center and the radius of a circle.

Radial-gradient example

Installation

npm install @pencil.js/radial-gradient

Examples

import RadialGradient from "@pencil.js/radial-gradient";
import Square from "@pencil.js/square";

const position = [100, 200];
const size = 200;
const centerPosition = [size / 2, size / 2];
const radius = size / 2;
const square = new Square(position, size, {
    fill: new RadialGradient(centerPosition, radius, {
        0: "red",
        0.5: "yellow",
        1: "green",
    }),
});
1.18.0

5 years ago

1.17.0

5 years ago

1.16.0

5 years ago

1.15.0

5 years ago

1.11.0

6 years ago

1.10.0

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago