Publicidad
Copy your drawSmile function from your previous assignment.pdf
Próximo SlideShare
Assignment work -20 marks + 2 bonus- Please follow the instructions an.docxAssignment work -20 marks + 2 bonus- Please follow the instructions an.docx
Cargando en ... 3
1 de 1
Publicidad

Más contenido relacionado

Más de devangmittal4(20)

Publicidad

Copy your drawSmile function from your previous assignment.pdf

  1. Copy your drawSmile() function from your previous assignment into your Assignment 8 Javascript. If you havent done so already, modify the function to accept two parameters, like drawSmile(x,y). Your function is now going to draw your Smiley at the location we pass in as a parameter, rather than using global variables. You should not have to modify this function in any other way. Write the JavaScript so that when the Draw button is pressed, we draw several smiley faces around a circle centered at the middle of the canvas > Like the picture a) Get the number of smiles to draw from the first textbox, lets call this number N Enter a number of smiles to drav Enter how far from the center of the canvas to draw themEnter a number of smiles to draw Enter a number of smiles to drav Enter how far from the center of the canvas to draw them Enter bow far from the center of the canvas to draw then CPSC 1045 Assignn This page says You entered an invalid value. Enter a number of smiles to draw 100
Publicidad