In Processing, calling box(s) creates a cube with side length s.
In libprocessing, the same call raises an error, suggesting that only the three-argument version is supported.
Steps to reproduce
from mewnala import *
def setup():
size(200, 200, P3D)
def draw():
box(90)
run()
Processing equivalent
void setup() {
size(400, 400, P3D);
background(255);
}
void draw() {
box(90);
}
Expected behavior
box(90) should render a cube with width, height, and depth all set to 90.
Actual behavior
RuntimeError: TypeError: box() missing 2 required positional arguments: 'y' and 'z'
Notes
Processing supports both overloads:
box(size) → cube
box(width, height, depth) → box with custom dimensions
In Processing, calling
box(s)creates a cube with side lengths.In libprocessing, the same call raises an error, suggesting that only the three-argument version is supported.
Steps to reproduce
Processing equivalent
Expected behavior
box(90)should render a cube with width, height, and depth all set to 90.Actual behavior
Notes
Processing supports both overloads:
box(size)→ cubebox(width, height, depth)→ box with custom dimensions