weakish

30行js代碼比賽

  •  
  •   weakish · Nov 22, 2013 · 3353 views
    This topic created in 4556 days ago, the information mentioned may be changed or developed.
    看到SegmentFault在搞一個30行js代碼比賽

    http://segmentfault.com/q/1010000000340372

    可以去圍觀下。

    個人最喜歡32*32的黑白屏幕和Gerhut發的打球那個。
    11 replies    1970-01-01 08:00:00 +08:00
    fakefish
        1
    fakefish  
       Nov 22, 2013
    不应该是tree么
    weakish
        2
    weakish  
    OP
       Nov 22, 2013
    @fakefish 你最喜歡 tree,不代表我也要喜歡好不好?
    chairuosen
        3
    chairuosen  
       Nov 22, 2013
    我喜欢贝塞尔曲线那个。。。看了好久看不懂
    est
        4
    est  
       Nov 22, 2013
    <body onload=setInterval("S=Math.sin;with(R.getContext('2d'))for(fillRect(0,0,300,150,drawImage(R,9,2,282,148,0,3,300,150),fillStyle='rgba(99,0,42,.01)'),a+=x=88;x--;fillRect(x*4,75+S(a+x/27+S(x/9)*S(a*2-x/15))*20,4,3))fillStyle='#c60'",a=9)><canvas id=R>
    weakish
        5
    weakish  
    OP
       Nov 22, 2013
    @est 這排版……你可以到segmentfault發下,那裏支持 jsfiddle.net runjs.cn 鏈接,可以直接看效果。(用GitHub直接可以登錄,不用註冊。)
    est
        6
    est  
       Nov 22, 2013   ❤️ 1
    贴一个别人的~~~


    http://jsfiddle.net/3Sep9/


    出处是这里 http://www.p01.org/releases/
    fakefish
        7
    fakefish  
       Nov 22, 2013
    @weakish =.=
    clippit
        8
    clippit  
       Nov 22, 2013
    还要写30行?有人一行 js 都没写就做了个游戏
    http://codepen.io/i0z/pen/mFLCw
    rayps
        9
    rayps  
       Nov 23, 2013
    @clippit 好厉害..怎么实现的
    weakish
        10
    weakish  
    OP
       Nov 23, 2013
    @rayps CSS和HTML
    weakish
        11
    weakish  
    OP
       Nov 26, 2013
    http://segmentfault.com/q/1010000000340372#a-1020000000342004 这个“动画演示对600个元素快速排序”也很赞
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2987 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.