## dwitter.net | donbright (881)

+ New dweet
`function u(t) {`
```} // 122/140 ```

Please log in (or register) to post a dweet (copy-paste the code somewhere safe to save it meanwhile)

``` u(t) is called 60 times per second. t: Elapsed time in seconds. S: Shorthand for Math.sin. C: Shorthand for Math.cos. T: Shorthand for Math.tan. R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5) c: A 1920x1080 canvas. x: A 2D context for that canvas. ```
Try the new frontend: beta.dwitter.net
Current theme challenge: #Opposites
show FPS hide FPS share

`function u(t) {`

```}// 131/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

• bottom wave = sum of other two waves

show FPS hide FPS share

`function u(t) {`

```}// 139/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

show FPS hide FPS share

`function u(t) {`

```}// 130/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

• As part of #circlechallenge I go back to the old rational parametrization of the circle from Wildberger's "chromogeometry", which has elements of Euclid. Each frame draws rational points on a circle, and each frame the radius gets bigger. All of the patterns are a kind of optical illusion.
• u/donbright
changing '2' and '3' to different numbers will give different patterns

remix of d/23883 by u/donbright

`function u(t) {`

```}// 126/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

• Prime fun 2 / 3 - Normally X binary XOR with Y produces a single white line, but if we only draw black when X XOR Y is a prime number, then we get a pattern. #math #primes

`function u(t) {`

```}// 128/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

• Prime fun 1 / 3 - This is the standard X&Y (binary AND) Sierpinski triangle picture but only where X & Y is a prime number. perhaps revealing a relationship between primes and binary AND #math #primes

show FPS hide FPS share
remix of d/23884 by u/donbright

`function u(t) {`

```}// 126/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

• Prime fun 3 / 3 - when X is less than Y, then X modulo Y gives X, so we see the normal vertical prime stripes, white shows X is a prime. not sure about the rest, there seems to be a large white line around the line where X equals Y, #math #primes

remix of d/1286 by u/donbright

`function u(t) {`

```}// 140/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

show FPS hide FPS share

`function u(t) {`

```}// 140/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

• nothing fancy just some dancing modulo

show FPS hide FPS share
remix of d/14974 by u/donbright

`function u(t) {`

```}// 140/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

`function u(t) {`

```}// 138/140 ```

Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).