Skip to content

Problem with function size(int arg, int arg) in Class #317

Closed
@processing-bot

Description

@processing-bot

Created by: knupel

When the function void size(int arg, int arg) is used with two arguments in Class that's cause a syntax problem when this function is call directly in void setup()

Processing 4.0.2b / OS Monterey

Code to reproduce:

Truc truc = new Truc();
void setup() {
  size(200,200);
  truc.size(1,1); // problem >>> error à "."
  // func();
}

void draw() {
  truc.size(1,1); // no problem
}

void func() {
  truc.size(1,1); // no problem
}

class Truc {
  void size(int x, int y) {
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions