We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.9.4
Firefox
MacOS
It should clip to the full text, but it only clips to the last line.
let font function preload() { font = loadFont('https://fonts.gstatic.com/s/prompt/v10/-W_6XJnvUD7dzB2KZeKka2MrUZEtdzow.ttf') } function setup() { createCanvas(400, 400); } function draw() { background(220); clip(() => { textAlign(CENTER, CENTER) textSize(50) textFont(font) text('Line 1\nLine2', width/2, height/2) }) background(0) }
Live: https://editor.p5js.org/davepagurek/sketches/70aNKJIEz
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Most appropriate sub-area of p5.js?
p5.js version
1.9.4
Web browser and version
Firefox
Operating system
MacOS
Steps to reproduce this
Steps:
It should clip to the full text, but it only clips to the last line.
Snippet:
Live: https://editor.p5js.org/davepagurek/sketches/70aNKJIEz
The text was updated successfully, but these errors were encountered: