Sha256: 86cf6a41e34b4065d90688e285887081701c8ce729280fbfc5e0d36840e3ec4d
Contents?: true
Size: 725 Bytes
Versions: 7
Compression:
Stored size: 725 Bytes
Contents
/* --- script: Color.js description: Fills shape with color license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Layer provides: [LSD.Layer.Color, LSD.Layer.Fill] ... */ LSD.Layer.Color = { properties: { color: ['color', 'gradient', 'none'] }, paint: function(color) { if (color) var radial = color['radial-gradient'], gradient = color['gradient'] || color ['linear-gradient']; if (gradient) { return {fillLinear: [gradient]} } else if (!radial) { return {fill: (!color || color == 'none') ? null : color} } } }; LSD.Layer.Fill = { properties: { color: ['color'] }, prefix: 'fill', paint: LSD.Layer.Color.paint };
Version data entries
7 entries across 7 versions & 1 rubygems