Skip to content

Error from noCanvas() #3316

Open
Open
@Ttimurttt

Description

@Ttimurttt

p5.js version

1.11.1

What is your operating system?

Windows

Web browser and version

81b36b9535e3e3b610a52df3da48cd81362ec860-refs/branch-heads/6778_155@{#8}

Actual Behavior

When I wrote noCanvas in setup() function I got an error about parenticies. When removed this line evrything worked fine and the canvas didn't appear

Expected Behavior

Expected to get no error

Steps to reproduce

Steps:

  1. write loadStrings
  2. write noCanvas()
  3. Run code

// Paste your code here :)

let txt;

function preload() {
txt = loadStrings('Textic.txt');
}

function setup() {
// noCanvas() was here
console.log(txt)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions