Skip to content

cos not defined #3580

@fnurl

Description

@fnurl

p5.js version

set to 2.0.3 in web editor

What is your operating system?

Mac OS

Web browser and version

No response

Actual Behavior

cos not defined
https://editor.p5js.org/jody.foo/sketches/-br_Enwli

Expected Behavior

cos of value returned by function and assigned to x

Steps to reproduce

Steps:

Snippet:

// Paste your code here :)

let x = cos(0);
function setup() {
createCanvas(400, 400);
}

function draw() {
background(220);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions