Skip to content

box() single-argument overload missing #136

@SableRaf

Description

@SableRaf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions