Skip to content

Commit 3352443

Browse files
committed
simple_spectrum: whitespace cleanup because I use tabs and others don't.
1 parent 9cfff16 commit 3352443

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/simple_spectrum.d

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,30 @@ int main()
2525
}
2626
start_color();
2727
foreach(ushort i; 0 .. 256){ // Define all the colours with the default palette
28-
init_pair(i, 0, i); // We're only setting the background here;
28+
init_pair(i, 0, i); // We're only setting the background here;
2929
} // The space is rendered as nothing.
3030

3131
auto w = COLS/9; // Let's just fill all the horizontal space
3232

3333
// Basic colours
3434
foreach(ushort i; 0 .. 16){
35-
attron(COLOR_PAIR(i));
36-
mvwhline(stdscr, cast(int)(i%8),w*(i/8),to!size_t(' '),w);//chtype is a size_t by spec.
37-
attroff(COLOR_PAIR(i));
35+
attron(COLOR_PAIR(i));
36+
mvwhline(stdscr, cast(int)(i%8),w*(i/8),to!size_t(' '),w);//chtype is a size_t by spec.
37+
attroff(COLOR_PAIR(i));
3838
}
3939

4040
// 6x6x6 cubemap
4141
foreach(ushort i; 16 .. 232){
42-
attron(COLOR_PAIR(i));
43-
mvwhline(stdscr, cast(int)((i-16)%36),(2*w+w*((i-16)/36)),to!size_t(' '),w);
44-
attroff(COLOR_PAIR(i));
42+
attron(COLOR_PAIR(i));
43+
mvwhline(stdscr, cast(int)((i-16)%36),(2*w+w*((i-16)/36)),to!size_t(' '),w);
44+
attroff(COLOR_PAIR(i));
4545
}
4646

4747
// Greyscale
4848
foreach(ushort i; 232 .. 256){
49-
attron(COLOR_PAIR(i));
50-
mvwhline(stdscr, cast(int)(i-232),(8*w),to!size_t(' '),w);
51-
attroff(COLOR_PAIR(i));
49+
attron(COLOR_PAIR(i));
50+
mvwhline(stdscr, cast(int)(i-232),(8*w),to!size_t(' '),w);
51+
attroff(COLOR_PAIR(i));
5252
}
5353

5454
wmove(stdscr, LINES-1, COLS-1);//Moving this out of the way

0 commit comments

Comments
 (0)