CanvasFilters: Difference between revisions

m
typo
(first steps)
m (typo)
Line 36: Line 36:


  context . filter [ = value ]
  context . filter [ = value ]
 
     Returns the current filter.
     Returns the current filter.
     Can be set, to change the filter. Values that cannot be parsed are ignored.
     Can be set, to change the filter. Values that cannot be parsed are ignored.
Line 46: Line 46:
On setting, if the new value is "none", filters must be disabled for the context. Otherwise, the value must be parsed as a CSS <filter-function-list> value. If the value cannot be parsed as a CSS <filter-function-list> value then it must be ignored, and the attribute must retain its previous value. [filter-effects]
On setting, if the new value is "none", filters must be disabled for the context. Otherwise, the value must be parsed as a CSS <filter-function-list> value. If the value cannot be parsed as a CSS <filter-function-list> value then it must be ignored, and the attribute must retain its previous value. [filter-effects]


Coordinates in filters are interpreted as 1 px = 1 SVG user space unit = 1 canvas coordinate space unit. Filters coordinates are not affected by the current transformation matrix. The current transformation matrix only affects the input to the filter, filters are applied in device space (XXX "device space" is apparently not defined on https://html.spec.whatwg.org/multipage/scripting.html , how should we say this?).
Coordinates in filters are interpreted as 1px = 1 SVG user space unit = 1 canvas coordinate space unit. Filter coordinates are not affected by the current transformation matrix. The current transformation matrix only affects the input to the filter, filters are applied in device space (XXX "device space" is apparently not defined on https://html.spec.whatwg.org/multipage/scripting.html , how should we say this?).


...
...
Confirmed users
85

edits