dwitter.net | Galaxtone (890)

+ 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
show FPS hide FPS share fullscreen

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

  • 141/140 I broke the matrix
  • u/prplz
    When the order of your for loop isn't important you can make it count backwards like this for(i=10;i--;)
  • u/Galaxtone
    oh nice thx for the tip I'm new to this code-golfing site
  • u/Galaxtone
    also I saw something about using with(x) so I think I'll use that for future stuff :p
  • u/Galaxtone
    for(i=10;i--;)with(x){fillStyle=R(S(t)*255,C(t)*255);beginPath(); ellipse(400+i*99+S(t)*300,S(t)*99+400,50,C(t)*99+200,0,0,3,1);fill()} Saved 5 whole bytes using that

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

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

  • helix thing

Please log in (or register) to comment.


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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/7105 by u/yonatan

function u(t) {

}//
134/140


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

  • lit and colored

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7060 by u/snydej

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

  • Golfed this one better and added a few details, like differing star sizes.
  • Show more comments…
  • u/iverjo
    #stars
  • u/joeytwiddle
    #landscape #scene
  • u/larzuk
    quite impressive!
  • u/vain
    nice night sky with shooting stars. just incredible work

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen
remix of d/6334 by u/BackendForth

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

  • try angles.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/5600 by u/p01

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 more comments…
  • u/fusty
    It would be amazing if you could post an expanded, commented version along with your 140 character versions on this site.
  • u/oldspork
    I'm completely new to all coding and just found out about this amazing community; how on Earth do these symbols code for a globe?
  • u/hg
    oldspork These symbols are just what unicode decides his binary data can best be represented as in text. The real magic is the charCodeAt part of their code.
  • u/iverjo
    #sphere #earth #globe

Please log in (or register) to comment.


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

  • Welcome to the Matrix!
  • u/iverjo
    #matrix
  • u/danny@hille.dk
    More speed longer trails !t?W=c.width=600:i=W;for(x.fillRect(0,0,W,W);i--;x.fillText(unescape("%u30B"+C%9),i*9,C=~~(t*15+i**3)*11%W))x.fillStyle=R(0,i&&W,0,i?1:.03)
  • u/vain
    Beautiful looking remake of the matrix fx

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/271 by u/3bl3gamer

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

  • Based on some of 3b3lgamer's stuff (remix link got broken).

Please log in (or register) to comment.

You've reached the end.