Just shrink it and rotate it
Look at try this function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
// Set ellipse mode to center
ellipseMode(CENTER);
// Draw oval with rounded top and bottom, flat on left and right
drawRoundedOval(width / 2, height / 2, 100, 200);
}
function drawRoundedOval(x, y, w, h) {
// Draw the rounded top part
arc(x, y - h / 2, w, h, PI, TWO_PI);
// Draw the flat middle part
rect(x - w / 2, y - h / 2, w, h);
// Draw the rounded bottom part
arc(x, y + h / 2, w, h, 0, PI);
} and Just shrink it and rotate it
Or just use HTML, css, and js
You might also like function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
// Set ellipse mode to center
ellipseMode(CENTER);
// Draw oval with rounded top and bottom, flat on left and right
drawRoundedOval(width / 2, height / 2, 100, 200);
}
function drawRoundedOval(x, y, w, h) {
// Draw the rounded top part
arc(x, y - h / 2, w, h, PI, TWO_PI);
// Draw the flat middle part
rect(x - w / 2, y - h / 2, w, h);
// Draw the rounded bottom part
arc(x, y + h / 2, w, h, 0, PI);
}
What do ya have? So far???
Wow can I have the project url? Just to expand upon it and explore it???
Have you improved anything?
Have you improved anything???
dropdowns
Wow it’s kinda hard for me to edit it
<script>
function drag(ev) {
// Set the data to be transferred during the drag
ev.dataTransfer.setData("text", ev.target.id);
}
</script>
Nvm
Can you add dragging?
yeah
And convert it from mostly HTML to js ctx
Also for some reason it isn’t updating
Wait share me the editor url for your project
Also Wait share me the editor url for your project