Ignore:
Timestamp:
Jul 22, 2012, 3:16:07 AM (11 years ago)
Author:
rez
Message:

new font / blur+chromatic aberration boosted on screen corners / various optimization in postfx

File:
1 edited

Legend:

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

    r1660 r1661  
    7979    m_time += seconds;
    8080
    81     /* draw something */
     81    /* draw something awesome */
    8282    int bg_color = 0x222;
    8383    int w = caca_get_canvas_width(m_caca);
     
    8787    caca_clear_canvas(m_caca);
    8888
    89     caca_set_color_argb(m_caca, 0xa46, bg_color);
     89    caca_set_color_argb(m_caca, 0x545, bg_color);
    9090    for(int i = 0; i < h; i++)
    9191    {
     
    106106    }
    107107
    108 /*
    109    __  _________ ______ ______ ______ ______
    110   /  \/  /  __  Y  __  Y  __  Y  ___//  ___/
     108/* __  _________ ______ ______ ______ ______
     109  /  \/  /  __  >  __  >  __  >  ___//  ___/ \x0a9
    111110 /      /  ____/  ____/  __  <  <____\___  \
    112 /__/\__/\_______________/  \________________\
    113 */
     111/__/\__/\_______________/  \________________\ */
    114112
    115113    int logo_x = (w - 46) / 2;
    116     int logo_y = h / 2 - 2;
     114    int logo_y = h / 2 - 2;// + h / 4 * lol::cos(m_time * 2);
    117115
    118116    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);
    119117    caca_put_str(m_caca, logo_x + 3, logo_y    ,"__  _________ ______ ______ ______ ______");
    120118    caca_set_color_argb(m_caca, hex_color(0.5f + 0.5f * lol::cos(m_time * 3 + M_PI / 4 * 1), 0.5f, 0.5f + 0.25f * lol::sin(m_time * 3 + M_PI / 4 * 1)), bg_color);
    121     caca_put_str(m_caca, logo_x + 2, logo_y + 1, "/  \\/  /  __  Y  __  Y  __  Y  ___//  ___/");
     119    caca_put_str(m_caca, logo_x + 2, logo_y + 1, "/  \\/  /  __  >  __  >  __  >  ___//  ___/");
    122120    caca_set_color_argb(m_caca, hex_color(0.5f + 0.5f * lol::cos(m_time * 3 + M_PI / 4 * 2), 0.5f, 0.5f + 0.25f * lol::sin(m_time * 3 + M_PI / 4 * 2)), bg_color);
    123121    caca_put_str(m_caca, logo_x + 1, logo_y + 2, "/      /  ____/  ____/  __  <  <____\\___  \\");
Note: See TracChangeset for help on using the changeset viewer.