currently i'm working on recreating my Bitwig template with canvas.
Basically what i'm now looking for is a simple icon (shape) library, for play/pause cycle etc.
All what is available fur custom buttons for example, just made with canvas.
While simple shapes might be not that problematic to do, i wonder if anyone has already recreated those standard icons and would like to share them.
I'm not too skilled with maths, so it would take a lot of time for me, wich i would like to spend on functionality instead.
I found this generator, wich does look quite useful, what do you think?. https://canvas-designer.appspot.com/
Maybe we could make an example, how to translate that generated code to be usable within Lemur.
lets say for a simple play button, that would be a great help for me and i guess all other beginners as well, to exercise this example code to see what can be used, or what needs to be changed.
Here is a simple play shape from that canvas designer:
Code: Select all
var x = 603, y = 240;
context.beginPath();
context.moveTo(x y);
context.lineTo(x, y + 68);
strokeOrFill("2", "#6c96c8", "transparent", "1", "source-over", "butt", "miter");
context.beginPath();
context.moveTo(x + 1, y + 2);
context.lineTo(x + 71, y + 35);
strokeOrFill();
context.beginPath();
context.moveTo(x + 1, y + 67);
context.lineTo(x + 70, y + 35);
strokeOrFill();
function strokeOrFill(lineWidth, strokeStyle, fillStyle, globalAlpha, globalCompositeOperation, lineCap, lineJoin) {
if(lineWidth) {
context.globalAlpha = globalAlpha;
context.globalCompositeOperation = globalCompositeOperation;
context.lineCap = lineCap;
context.lineJoin = lineJoin;
context.lineWidth = lineWidth;
context.strokeStyle = strokeStyle;
context.fillStyle = fillStyle;
}
context.stroke();
context.fill();
}
thx for any help!
cheers