Hi there,
I have been working on a drawing for infants.
I have used the Pen to create the line drawing and Carousel for scrolling through letters for the students to trace over with their pen.
There is also an eraser.
I have 2 problems:
- I am trying to get the pen to trace over the letters rather than under them.
- The other problem I am having is getting the eraser to clear the Pen when either the left or right arrows of the Carousel are pressed. Just wondering how to get the arrows keys to run the Eraser function.
This is the Carousel Code:
const carousel = new Carousel(assets, 1)
.scaleTo(S,80,80)
.pos(200,0,LEFT,CENTER);
carousel.arrowLeft.vis(true)
carousel.arrowRight.vis(true);//.pen.clear();
S.update(); // update stage after loading (not needed if in Frame ready)
});
this is the Pen code.
const pen = new Pen({
damp: .2,
size: 10,
move: false,
color: culur, // Initial color
}).center()
and this is the eraser function:
function Eraser() {
pen.clear();
}
Any help would be very appreciated.
Thanks
Rod