Changeset 1584


Ignore:
Timestamp:
Jul 6, 2012, 12:07:28 AM (8 years ago)
Author:
sam
Message:

neercs: use RGB colours instead of ANSI attributes for some canvas stuff.

File:
1 edited

Legend:

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

    r1513 r1584  
    6060    m_time += seconds;
    6161
    62     caca_set_color_ansi(m_caca, CACA_DEFAULT, CACA_DEFAULT);
     62    caca_set_color_argb(m_caca, 0xfff, 0x222);
    6363    caca_clear_canvas(m_caca);
    6464
     
    6666    caca_fill_ellipse(m_caca, 20+10 * lol::cos(m_time * 1.f), 10+10 * lol::sin(m_time * 1.f), 12+8 * lol::sin(m_time * 6.f), 8+6 * lol::cos(m_time * 5.f), ' ');
    6767
    68     caca_set_color_ansi(m_caca, 2, CACA_DEFAULT);
     68    caca_set_color_argb(m_caca, 0xcef, 0x222);
    6969    int x1 = 12 + 10 * lol::cos(m_time * 5.f);
    7070    int y1 = 6 + 5 * lol::sin(m_time * 5.f);
Note: See TracChangeset for help on using the changeset viewer.