github css-doodle/css-doodle v0.22.0

latest releases: v0.39.0, v0.38.2, v0.38.1...
2 years ago
  • Now use WebGL2 and GLSL3.0 for shader programs.

  • Added @paint function for quick CSS painting API experiment.

    background: @paint(
      paint(ctx, {width, height}) {
        let x = width / 2;
        let y = height / 2;
        let r = Math.min(x, y);
        ctx.fillStyle = 'red';
        ctx.beginPath();
        ctx.arc(x, y, r, 0, 2 * Math.PI);
        ctx.fill();
      }
    );

    If the inner paint function is missing it will try to autocomplete the code.

    background: @paint(
      let x = width / 2;
      let y = height / 2;
      let r = Math.min(x, y);
      ctx.fillStyle = 'red';
      ctx.beginPath();
      ctx.arc(x, y, r, 0, 2 * Math.PI);
      ctx.fill();
    );

Don't miss a new css-doodle release

NewReleases is sending notifications on new releases.