Skip to content

Conversation

@Jhynjhiruu
Copy link

Per discussion in Discord, here's the HTML5 portion of my ComponentGraphics text PR.

Example usage:

componentGraphics.strokeStyle(Color.fromString("black"), 5);
componentGraphics.fillStyle(Color.fromString("white"));
for (node in _nodes) {
    componentGraphics.circle(node._xy.x, node._xy.y, 20);
}

componentGraphics.strokeStyle(null);
componentGraphics.fillStyle(Color.fromString("black"));
componentGraphics.fontStyle(10, "Sans Serif", "middle");
for (node in _nodes) {
    componentGraphics.text(node._xy.x, node._xy.y, 'node${node._id}');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant