"The Method is not Applicable for the Arguments" - Why does it say this?
in
Programming Questions
•
1 year ago
I cannot keep working because Processing doesn't like something that I am doing..
It says The Method is not Applicable for the Arguments(int,int,int,int)
Do you know what's going on?
Thanks!
- int gridHeight;
- int gridWidth;
- float circleRadius;
- int drawGridOfCircles;
- void setup() {
- gridHeight=5;
- gridWidth=10;
- size(600, 600);
- }
- void draw() {
- background(255);
- fill(255,0,0);
- circleRadius =mouseY/20;
- drawGridOfCircles(gridHeight, gridWidth, mouseX, mouseY);
- //drawGirdOfCircles(20,3,50);
- }
- void drawGridOfCircles() {
- //void drawGridOfCircles(int a, int b, float c){
- for (int i=1;i<gridWidth;i=i+1) {
- for (int j=1; j<gridHeight; j=j+1) {
- ellipse(i*20, j*20, circleRadius, circleRadius);
- }
- }
- }
1