private void SetPalette(VisBitmap8 vb) { vb.AddColor(0, 0, 0, 0); // 0=transparent vb.AddColor(0xff, 0x20, 0x20, 0xe0); // 1=solid (mostly blue) vb.AddColor(0xff, 0x00, 0x00, 0x00); // 2=black vb.AddColor(0xff, 0xff, 0xff, 0xff); // 3=white vb.AddColor(0xff, 0xd0, 0xd0, 0xd0); // 4=grey }
// IPlugin_Visualizer public IVisualization2d Generate2d(VisDescr descr, ReadOnlyDictionary <string, object> parms) { VisBitmap8 vb = new VisBitmap8(1, 1); vb.AddColor(0, 0, 0, 0); vb.SetPixelIndex(0, 0, 0); return(vb); }
private void SetHiResPalette(VisBitmap8 vb) { // These don't match directly to hi-res color numbers because we want to // avoid adding black/white twice. The colors correspond to Apple IIgs RGB // monitor output. vb.AddColor(0, 0, 0, 0); // 0=transparent vb.AddColor(0xff, 0x00, 0x00, 0x00); // 1=black0/black1 vb.AddColor(0xff, 0xff, 0xff, 0xff); // 2=white0/white1 vb.AddColor(0xff, 0x11, 0xdd, 0x00); // 3=green vb.AddColor(0xff, 0xdd, 0x22, 0xdd); // 4=purple vb.AddColor(0xff, 0xff, 0x66, 0x00); // 5=orange vb.AddColor(0xff, 0x22, 0x22, 0xff); // 6=blue }
private void SetPalette(VisBitmap8 vb) { vb.AddColor(0, 0, 0, 0); // 0=transparent vb.AddColor(0xff, 0x20, 0x20, 0xff); // 1=solid }
private void SetHiResPalette(VisBitmap8 vb) { vb.AddColor(0x00, 0x00, 0x00, 0x00); // 0=transparent vb.AddColor(0xff, 0x20, 0x20, 0xe0); // 1=solid (mostly blue) }
// C64 colors, from http://unusedino.de/ec64/technical/misc/vic656x/colors/ // (the ones on https://www.c64-wiki.com/wiki/Color looked wrong) private void SetPalette(VisBitmap8 vb) { vb.AddColor(0xff, 0x00, 0x00, 0x00); // 0=black vb.AddColor(0xff, 0xff, 0xff, 0xff); // 1=white vb.AddColor(0xff, 0x68, 0x37, 0x2b); // 2=red vb.AddColor(0xff, 0x70, 0xa4, 0xb2); // 3=cyan vb.AddColor(0xff, 0x6f, 0x3d, 0x86); // 4=purple vb.AddColor(0xff, 0x58, 0x8d, 0x43); // 5=green vb.AddColor(0xff, 0x35, 0x28, 0x79); // 6=blue vb.AddColor(0xff, 0xb8, 0xc7, 0x6f); // 7=yellow vb.AddColor(0xff, 0x6f, 0x4f, 0x25); // 8=orange vb.AddColor(0xff, 0x43, 0x39, 0x00); // 9-brown vb.AddColor(0xff, 0x9a, 0x67, 0x59); // 10=light red vb.AddColor(0xff, 0x44, 0x44, 0x44); // 11=dark grey vb.AddColor(0xff, 0x6c, 0x6c, 0x6c); // 12=grey vb.AddColor(0xff, 0x9a, 0xd2, 0x84); // 13=light green vb.AddColor(0xff, 0x6c, 0x5e, 0xb5); // 14=light blue vb.AddColor(0xff, 0x95, 0x95, 0x95); // 15=light grey vb.AddColor(0, 0, 0, 0); // 16=transparent }
private void SetPalette(VisBitmap8 vb, Palette pal) { vb.AddColor(0, 0, 0, 0); // 0=transparent vb.AddColor(0xff, 0x01, 0x01, 0x01); // 1=near black (so VB doesn't uniquify) vb.AddColor(0xff, 0xfe, 0xfe, 0xfe); // 2=near white switch (pal) { case Palette.Greyscale: default: vb.AddColor(0xff, 0x00, 0x00, 0x00); // black vb.AddColor(0xff, 0x80, 0x80, 0x80); // dark grey vb.AddColor(0xff, 0xb0, 0xb0, 0xb0); // medium grey vb.AddColor(0xff, 0xe0, 0xe0, 0xe0); // light grey break; case Palette.Pinkish: vb.AddColor(0xff, 0x49, 0x99, 0xfe); // sky blue vb.AddColor(0xff, 0xff, 0xbd, 0xaf); // pinkish vb.AddColor(0xff, 0xcd, 0x50, 0x00); // dark orange vb.AddColor(0xff, 0x00, 0x00, 0x00); // black break; case Palette.Greenish: vb.AddColor(0xff, 0x49, 0x99, 0xfe); // sky blue vb.AddColor(0xff, 0x00, 0xa4, 0x00); // medium green vb.AddColor(0xff, 0xfc, 0xfc, 0xfc); // near white vb.AddColor(0xff, 0xff, 0x99, 0x2b); // orange break; } }