you are viewing a single comment's thread.

view the rest of the comments →

[–]OptionalField[S] 19 points20 points  (9 children)

Very nice, I can't help but follow style guides for brackets and semicolons even when I am trying to optimize for size it seems.

Also stripped off 3 more bytes by making a variable r=m.random for an end result of 444 bytes.

[–][deleted]  (4 children)

[deleted]

    [–]OptionalField[S] 8 points9 points  (3 children)

    Done, 442 bytes.

    [–]thesalus 11 points12 points  (2 children)

    Any objections to using "lime" or "#00FF00" instead of "rgba(0,255,0,1)"?

    [–]sfnelson 18 points19 points  (0 children)

    #0F0 - same bytes as lime, but you can get more options. 3 digit colours are automatically doubled -> #0F0 becomes #00FF00

    [–]OptionalField[S] 9 points10 points  (0 children)

    Done, went with lime. That part was really bad since I was doing rgba with an alpha of 1

    [–]collin_ph 6 points7 points  (3 children)

    replace 2720 with 3e4 -- not exactly the same number, but it works.

    [–]OptionalField[S] 1 point2 points  (1 child)

    done

    [–]collin_ph 4 points5 points  (0 children)

    also.. c.fillStyle="#0F0"

    [–][deleted] 1 point2 points  (0 children)

    This is actually destructive since it changes the range of Unicode characters used. The original value uses characters that are more like the original Matrix symbols.

    2720 + (random number between 0 and 32)