css-doodle

🎨 A web component for drawing patterns with CSS.

MIT License

Downloads
18.1K
Stars
5.4K
Committers
8

Bot releases are visible (Hide)

css-doodle - v0.13.1

Published by yuanchuan almost 4 years ago

Fixes

  • Remove conditional statements since terser will remove line breaks ( a quick fix).
css-doodle - v0.13.0

Published by yuanchuan almost 4 years ago

Features

  • Add @shaders function for writing GLSL inside css-doodle.
css-doodle - v0.12.2

Published by yuanchuan almost 4 years ago

Fixes

  • Fix issue when @doodle is part of function arguments.
css-doodle - v0.12.1

Published by yuanchuan almost 4 years ago

Fixes

  • Prevent circular references inside @shape function.
  • Normalize default values for @shape function.
css-doodle - v0.12.0

Published by yuanchuan almost 4 years ago

Features

  • Add @doodle function to make css-doodle as backgrounds.
  • Add custom shape via @shape function.
css-doodle - v0.11.3

Published by yuanchuan almost 4 years ago

Fixes

  • Fix error when calling @shape function.

Changes

  • Respect to devicePixelRatio only when the given exporting scale value equals 1.
css-doodle - v0.11.2

Published by yuanchuan almost 4 years ago

Fixes

  • Fix scale issue in Safari.
  • Fix missing variables defined outside by applying all variables to the exported root element.

Changes

  • Remove custom warnings for overload resolution.
css-doodle - v0.11.1

Published by yuanchuan almost 4 years ago

Fixes

  • Fix default scale for retina screen.
  • Fix the size of the exported image for relative values.

Changes

  • Add detail option for export.
  • No export scale for Safari.
css-doodle - v0.11.0

Published by yuanchuan almost 4 years ago

Features

  • Add export API for saving css-doodle as an image.
css-doodle - v0.10.0

Published by yuanchuan almost 4 years ago

Features

  • Add 2-dimensional traversal ability to @m function.
  • Simplify function names by introducing capitalized names.
  • Improve code generation speed.

Fixes

  • Fix '0' value in arguments not being included.
css-doodle - v0.9.3

Published by yuanchuan almost 4 years ago

Fixes

  • Fix attribute update for seed number.
css-doodle - v0.9.2

Published by yuanchuan almost 4 years ago

Fixes

  • Normalize the count of sequence generator so it's ok to use @r function in @m function.
  • Replace all errors with warnings.

Changes

  • Add version to released files.
css-doodle - v0.9.1

Published by yuanchuan almost 4 years ago

Fixes

  • Fix reading property names.
css-doodle - v0.9.0

Published by yuanchuan almost 4 years ago

Features

  • Add seed number to css-doodle.
  • Add cross options to even/odd functions.
  • Automatically register properties by their names.

Changes

  • Make row/col respect to y/x.
css-doodle - v0.8.5

Published by yuanchuan over 4 years ago

Fixes

  • Fix blink on reinitialization.
  • Fix the value of @n and @M with no context.
css-doodle - v0.8.4

Published by yuanchuan over 4 years ago

Fixes

  • Fix grid parsing.

Changes

  • Set default width/height to be auto.
  • Export CSSDoodle as the module name for working with Observable.
css-doodle - v0.8.2

Published by yuanchuan over 4 years ago

Features

  • Support for function composition.
  • Make arguments expandable.

Fixes

  • Fix Math function name like ln10 and SQRT2.
css-doodle - v0.8.1

Published by yuanchuan over 4 years ago

Features

  • Add top-level grid definition.
  • Add stripe() function for gradients.
  • Make function arguments less error prone, e.g. trailing commas.

Changes

  • Increase the grid size up to 64x64.
  • Use place-items instead of place-content for pseudo elements.
css-doodle - v0.7.7

Published by yuanchuan almost 5 years ago

Changes

  • Modify the name shape pear to drop and add rotation.
  • Limit size of the lp and lr to 20.

Fixes

  • Fix unexpectable bug in Chrome.
css-doodle - v0.7.6

Published by yuanchuan almost 5 years ago

Features

  • Add max iteration count @N.
  • Support last n value for @lp() and @lr().

Fixes

  • Ignore null or undefined values.