Skip to content

[Bug] oval() does not support transparent outline #324

@SLiV9

Description

@SLiV9

The following example (in Rust) draws an oval and a rectangle (as expected), but the oval has a dark outline:

#[no_mangle]
fn update() {
    unsafe { *DRAW_COLORS = 2 }
    oval(40, 20, 80, 40);

    unsafe { *DRAW_COLORS = 2 }
    rect(40, 80, 80, 40);
}

I would expect this code (and the equivalent DRAW_COLORS = 0x02) to draw a filled oval with no outline.

This seems to be either a bug or the documentation could be more explicit, especially because the hello world example also uses DRAW_COLORS = 2.

Version

w4 --version is 2.2.0

Workaround

Replacing 2 with 0x22 works as it draws the outline in the same color as the rest of the oval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions