mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 10:14:46 +01:00
Plug-ins: returned Curves points take pairs, Transform counts whole numbers
A returned Curves effect's `points` is now also taken as [[x, y], ...], the form the effect draws, each entry a pair of numbers. A returned Transform effect's `copies` and `reference` must be whole numbers; 1.5 copies drew one copy before.
This commit is contained in:
1 parent
1e644a8251
commit
ff68f3553c
3 files changed
+27
-7
No files matched your search
+7
-6
@@ -876,12 +876,13 @@ fill and stroke the piece returns, three more keys:
|
||||
- An effect record names a built-in effect that `effect.list` lists, other than a 3D effect or a Pathfinder effect
|
||||
(`pathfinder.*`, which has nothing to combine on a piece's one path), with parameters that effect takes, each of the
|
||||
type of its default, within the range `effect.list` gives for it, where it gives one, and one of the choices it
|
||||
lists for it, where it lists them (Roughen's `points` is `"smooth"` or `"corner"`). The values `effect.apply`
|
||||
checks for one effect are checked the same way: an SVG filter's `xml`, `scale`, `origin`, `axes` and `name`, a
|
||||
Warp's `version`, a `color` (`"#rrggbb"`, `[r, g, b]` with each component from 0 to 1, or a color object with
|
||||
components from 0 to 1 and a Lab lightness from 0 to 100), a Levels or Curves `channel` and a Radial Blur's center. A Drop Shadow's, Inner
|
||||
Glow's or Outer Glow's `mode` must name a blend mode (`"multiply"`, `"color-burn"`). Omitted parameters take the
|
||||
effect's defaults. On a fill or stroke only raster effects are taken, and only from an effect in the object's stack:
|
||||
lists for it, where it lists them (Roughen's `points` is `"smooth"` or `"corner"`). Curves' `points` may also be
|
||||
`[[x, y], …]`, each a pair of numbers, and a Transform's `copies` and `reference` are whole numbers. The values
|
||||
`effect.apply` checks for one effect are checked the same way: an SVG filter's `xml`, `scale`, `origin`, `axes` and
|
||||
`name`, a Warp's `version`, a `color` (`"#rrggbb"`, `[r, g, b]` with each component from 0 to 1, or a color object
|
||||
with components from 0 to 1 and a Lab lightness from 0 to 100), a Levels or Curves `channel` and a Radial Blur's
|
||||
center. A Drop Shadow's, Inner Glow's or Outer Glow's `mode` must name a blend mode (`"multiply"`, `"color-burn"`).
|
||||
Omitted parameters take the effect's defaults. On a fill or stroke only raster effects are taken, and only from an effect in the object's stack:
|
||||
the fills or strokes that an effect on a fill or a stroke returns take `opacity` and `blend` but no `effects` (its
|
||||
pieces still take them). A plug-in effect (`plugin.<id>`), this effect's own included, is refused, so the effects a
|
||||
piece carries never run a plug-in.
|
||||
|
||||
Reference in new issue
Block a user