Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from noCanvas() #3316

Open
Ttimurttt opened this issue Jan 7, 2025 · 1 comment
Open

Error from noCanvas() #3316

Ttimurttt opened this issue Jan 7, 2025 · 1 comment
Labels

Comments

@Ttimurttt
Copy link

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)
}

@Ttimurttt Ttimurttt added the Bug label Jan 7, 2025
Copy link

welcome bot commented Jan 7, 2025

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant