Question: hello, there is a syntax error with a section of my code. It is Processing code and I dont know where I went wrong: void

hello, there is a syntax error with a section of my code. It is Processing code and I dont know where I went wrong:
void drawAnimation3(){
// Draw headings
drawHeadings();
// Draw sentances
drawRandomSentences();
// Draw credits
drawCredits();
// Scrolling mechanism
yPos -= scrollSpeed;
if (yPos <-lineHeight *(headings.length + sentences.length)){
yPos = height;
}
// Draw sentences
for (int i =0; i < sentences.length; i++){
text(sentences[i],20, yPos +(headings.length + i)* lineHeight);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!