No , I am not a coder but a heritage enthusiast that would like to introduce my students to freehand drawing - the old fashioned way.
Problem: Need two palettes
I have cobbled together a D3 Block using existing code
Can't make the code work. Please help Freehand Doodles
pen_btn = ui.append('text').html('').attr({
"class": 'btn',
dy: '0.35em',
transform: 'translate(940,80)'
}).on('click', function() {
drawing_data.lines = [];
active_opacity = "0.9";
active_weight = "1px";
return redraw();
});
paint_btn = ui.append('text').html('').attr({
"class": 'btn',
dy: '0.35em',
transform: 'translate(940,140)'
}).on('click', function() {
drawing_data.lines = [];
active_opacity = "0.2";
active_weight = "13px";
return redraw();
});