decided to start a math script
it reads
x^2 + y^2 = 1
decided to start a math script
it reads
x^2 + y^2 = 1
in the reference please find
https://processing.org/reference/sq_.html
https://processing.org/reference/pow_.html
add can use java math lib
https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html
ok, for P5.js find reference here:
https://p5js.org/reference/#/p5/pow
heres a good example
<!DOCTYPE html>
<html>
<head>
title>
<script </script>
<script>
function updateLabels(x, y){
var xLabel = document.getElementById('x-label');
xLabel.innerHTML = 'X: ' + x;
var yLabel = document.getElementById('y-label');
yLabel.innerHTML = 'Y: ' + y;
}
</script>
<script>
function setup(){
var canvas = createCanvas(200, 200);
canvas.parent('sketch-div');
}
function draw(){
background(32);
fill(255);
ellipse(mouseX, mouseY, 20, 20);
updateLabels(mouseX, mouseY);
}
</script>
</head>
<body>
<div id="sketch-div"></div>
<p id="x-label"></p>
<p id="y-label"></p>
</body>
</html>
I this a graphic for 2D or for 3D ?
two d first its supposed to be a circle centered on a x and y axis like they example.
Research was done for this topic, for the shape lay out don’t forget the example in p5
Heres a math equation displaying the universe in four-d it should show that there is something missing how can i enter this into a p5 physics generator of some sort
image collected from https://www.google.com/search?rlz=1CAHJUL_enUS820&ei=9Se1XJLYA8musAX94KDoBQ&q=dark+m+atter+equations&oq=dark+m+atter+equations&gs_l=psy-ab.3..0i13j0i22i30l2.39748.47952..48186...1.0..2.163.5290.1j43…0…1…gws-wiz…6…0i71j35i39j0j0i131j0i67j0i10j0i8i13i30.eBpX0Ep8Ya0
Please format all code posts on the forum by either:
or
When you type html and raw code in your posts, it breaks your posts.
Instead, do it like this:
```
<em>my code</em>
<iframe>
```
so that we see it like this:
<em>my code</em>
<iframe>
…and not like this:
my code