Ignore:
Timestamp:
Jul 31, 2012, 2:59:17 AM (8 years ago)
Author:
rez
Message:

added smoothstep in postfx (more contrast!) and a magnificient LOLCUBE!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/neercs.cpp

    r1683 r1685  
    112112
    113113    int logo_x = (w - 46) / 2;
    114     int logo_y = h / 2 - 2;// + h / 4 * lol::cos(m_time * 2);
     114    int logo_y = h / 2 - 2;
    115115
    116116    caca_set_color_argb(m_caca, hex_color(0.5f + 0.5f * lol::cos(m_time * 3               ), 0.5f, 0.5f + 0.25f * lol::sin(m_time * 3               )), bg_color);
     
    132132    caca_put_str(m_caca, w - 12, h - 2, "CACA RULEZ");
    133133
     134    int lolcube_x = w / 2 - 5 + (w - 10) * lol::cos(m_time / 2);
     135    int lolcube_y = h - 5 - abs ((h - 5) * lol::sin(m_time * 4));
     136
     137    caca_set_color_argb(m_caca, hex_color(0.75f + 0.25f * lol::sin(m_time * 2), 0.75f + 0.25f * lol::cos(m_time * 3), 0.75f + 0.25f * lol::sin(m_time * 5)), bg_color);
     138    caca_put_str(m_caca, lolcube_x + 2, lolcube_y    , "_______");
     139    caca_put_str(m_caca, lolcube_x + 1, lolcube_y + 1, "/      /|");
     140    caca_put_str(m_caca, lolcube_x    , lolcube_y + 2, "/______/ |");
     141    caca_put_str(m_caca, lolcube_x    , lolcube_y + 3, "|      | |");
     142    caca_put_str(m_caca, lolcube_x    , lolcube_y + 4, "|  :D  | /");
     143    caca_put_str(m_caca, lolcube_x    , lolcube_y + 5, "|______|/");
     144
    134145    caca_set_color_argb(m_caca, 0xdef, bg_color);
    135     caca_put_str(m_caca, 0, 0, "mdr@lol:~/ cd code/lolengine/");
    136     caca_put_str(m_caca, 0, 1, "mdr@lol:~/code/lolengine/ cd /var/log/");
    137     caca_put_str(m_caca, 0, 2, "mdr@lol:/var/log/");
     146    caca_put_str(m_caca, 0, 0, "rez@lol:~/ sudo -s");
     147    caca_put_str(m_caca, 0, 1, "[sudo] password for rez:");
     148    caca_put_str(m_caca, 0, 2, "root@lol:~/ echo LOL");
     149    caca_put_str(m_caca, 0, 3, "LOL");
     150    caca_put_str(m_caca, 0, 4, "root@lol:~/");
    138151}
    139152
Note: See TracChangeset for help on using the changeset viewer.