## dwitter.net | tobias (188)

+ 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: #ScaryMovies
remix of d/9088 by u/firegodjr

`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).

• Fractal Metropolis 1972

remix of d/8945 by u/firegodjr

`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).

• Visualising numbers for which `sin(x)*sin(x) + cos(x)*cos(x) < 1`.
• u/donbright
wait wait wait wait wait.... sin^2 + cos^2 = 1. im so confused. is this about the imprecision of floating point arithmetic?
• u/donbright
this is absolutely fascinating... set it ==1 or >1 gives different patterns.
• u/donbright
also fun... return S(n)/C(n)==T(n)

`function u(t) {`

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

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

`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).

• u/robbyg
120 chars for more room to play: r=Math.random;with(x)fillStyle=`hsl(\${r()*360},90%,77%`,filter='blur(1px',fillRect(r()*2e3,r()*1e3,1,1),drawImage(c,0,0)
• u/micahcowan
(Fixed formatting) `r=Math.random;with(x)fillStyle=`hsl(\${r()*360},90%,77%`,filter='blur(1px',fillRect(r()*2e3,r()*1e3,1,1),drawImage(c,0,0)`
• u/elochimsiemasz
Duuude

show FPS hide FPS share

`function u(t) {`

```}// 119/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).

`function u(t) {`

```}// 125/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).

`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) {`

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

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

• field work
• u/41407
Awesome! I managed to shorten it down to 129 if you want to add something to it: `v=160;s=20;for(i=60*v;i--;l=(i%v))m=(i/v)|0,k=1+S(C(l/15)/C(m/17)+t*4),x.fillStyle=R(n=k*v+m*2,n+m,n+k*v),x.fillRect(l*s,m*s,s,s)`