MCPcopy Create free account
hub / github.com/HashLips/generative-art-opensource / signImage

Function signImage

index.js:26–32  ·  view source on GitHub ↗
(_sig)

Source from the content-addressed store, hash-verified

24
25// adds a signature to the top left corner of the canvas
26const signImage = (_sig) => {
27 ctx.fillStyle = "#000000";
28 ctx.font = "bold 30pt Courier";
29 ctx.textBaseline = "top";
30 ctx.textAlign = "left";
31 ctx.fillText(_sig, 40, 40);
32};
33
34// generate a random color hue
35const genColor = () => {

Callers 1

startCreatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected