Skip to content

Add static mark and animate mark #369

@pearmini

Description

@pearmini

Like client component and server component.

const root = cm.create("#root", {width: 200, height: 50});

root.render(sketch());
function sketch() {
  return {
    loop: true,
    render: () => [
      cm.svg("circle", {
        cx: Math.abs(Math.sin(Date.now() / 1000) * 200),
        cy: 25,
        r: 20,
        stroke: "red",
        strokeWidth: 4,
      }),
    ],
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions