Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def reset_colors():
lo_col_ind, hi_col_ind = ppgplot.pgqcol()
ppgplot.pgscir(lo_col_ind, hi_col_ind)
ppgplot.pgscr( 0, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscr( 1, 1.00, 1.00, 1.00) # White (default)
ppgplot.pgscr( 2, 1.00, 0.00, 0.00) # Red
ppgplot.pgscr( 3, 0.00, 1.00, 0.00) # Green
ppgplot.pgscr( 4, 0.00, 0.00, 1.00) # Blue
ppgplot.pgscr( 5, 0.00, 1.00, 1.00) # Cyan (Green + Blue)
ppgplot.pgscr( 6, 1.00, 0.00, 1.00) # Magenta (Red + Blue)
ppgplot.pgscr( 7, 1.00, 1.00, 0.00) # Yellow (Red + Green)
ppgplot.pgscr( 8, 1.00, 0.50, 0.00) # Red + Yellow (Orange)
ppgplot.pgscr( 9, 0.50, 1.00, 0.00) # Green + Yellow
ppgplot.pgscr(10, 0.00, 1.00, 0.50) # Green + Cyan
ppgplot.pgscr(11, 0.00, 0.50, 1.00) # Blue + Cyan
ppgplot.pgscr(12, 0.50, 0.00, 1.00) # Blue + Magenta
ppgplot.pgscr(13, 1.00, 0.00, 0.50) # Red + Magenta
ppgplot.pgscr(14, 0.33, 0.33, 0.33) # Dark Gray
ppgplot.pgscr(15, 0.66, 0.66, 0.66) # Light Gray
for ci in range(16, hi_col_ind+1):
ppgplot.pgscr(ci, 0.00, 0.00, 0.00) # Black (background)
def reset_colors():
lo_col_ind, hi_col_ind = ppgplot.pgqcol()
ppgplot.pgscir(lo_col_ind, hi_col_ind)
ppgplot.pgscr( 0, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscr( 1, 1.00, 1.00, 1.00) # White (default)
ppgplot.pgscr( 2, 1.00, 0.00, 0.00) # Red
ppgplot.pgscr( 3, 0.00, 1.00, 0.00) # Green
ppgplot.pgscr( 4, 0.00, 0.00, 1.00) # Blue
ppgplot.pgscr( 5, 0.00, 1.00, 1.00) # Cyan (Green + Blue)
ppgplot.pgscr( 6, 1.00, 0.00, 1.00) # Magenta (Red + Blue)
ppgplot.pgscr( 7, 1.00, 1.00, 0.00) # Yellow (Red + Green)
ppgplot.pgscr( 8, 1.00, 0.50, 0.00) # Red + Yellow (Orange)
ppgplot.pgscr( 9, 0.50, 1.00, 0.00) # Green + Yellow
ppgplot.pgscr(10, 0.00, 1.00, 0.50) # Green + Cyan
ppgplot.pgscr(11, 0.00, 0.50, 1.00) # Blue + Cyan
ppgplot.pgscr(12, 0.50, 0.00, 1.00) # Blue + Magenta
ppgplot.pgscr(13, 1.00, 0.00, 0.50) # Red + Magenta
ppgplot.pgscr(14, 0.33, 0.33, 0.33) # Dark Gray
ppgplot.pgscr(15, 0.66, 0.66, 0.66) # Light Gray
for ci in range(16, hi_col_ind+1):
ppgplot.pgscr(ci, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscir(lo_col_ind, hi_col_ind)
ppgplot.pgscr( 0, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscr( 1, 1.00, 1.00, 1.00) # White (default)
ppgplot.pgscr( 2, 1.00, 0.00, 0.00) # Red
ppgplot.pgscr( 3, 0.00, 1.00, 0.00) # Green
ppgplot.pgscr( 4, 0.00, 0.00, 1.00) # Blue
ppgplot.pgscr( 5, 0.00, 1.00, 1.00) # Cyan (Green + Blue)
ppgplot.pgscr( 6, 1.00, 0.00, 1.00) # Magenta (Red + Blue)
ppgplot.pgscr( 7, 1.00, 1.00, 0.00) # Yellow (Red + Green)
ppgplot.pgscr( 8, 1.00, 0.50, 0.00) # Red + Yellow (Orange)
ppgplot.pgscr( 9, 0.50, 1.00, 0.00) # Green + Yellow
ppgplot.pgscr(10, 0.00, 1.00, 0.50) # Green + Cyan
ppgplot.pgscr(11, 0.00, 0.50, 1.00) # Blue + Cyan
ppgplot.pgscr(12, 0.50, 0.00, 1.00) # Blue + Magenta
ppgplot.pgscr(13, 1.00, 0.00, 0.50) # Red + Magenta
ppgplot.pgscr(14, 0.33, 0.33, 0.33) # Dark Gray
ppgplot.pgscr(15, 0.66, 0.66, 0.66) # Light Gray
for ci in range(16, hi_col_ind+1):
ppgplot.pgscr(ci, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscr( 2, 1.00, 0.00, 0.00) # Red
ppgplot.pgscr( 3, 0.00, 1.00, 0.00) # Green
ppgplot.pgscr( 4, 0.00, 0.00, 1.00) # Blue
ppgplot.pgscr( 5, 0.00, 1.00, 1.00) # Cyan (Green + Blue)
ppgplot.pgscr( 6, 1.00, 0.00, 1.00) # Magenta (Red + Blue)
ppgplot.pgscr( 7, 1.00, 1.00, 0.00) # Yellow (Red + Green)
ppgplot.pgscr( 8, 1.00, 0.50, 0.00) # Red + Yellow (Orange)
ppgplot.pgscr( 9, 0.50, 1.00, 0.00) # Green + Yellow
ppgplot.pgscr(10, 0.00, 1.00, 0.50) # Green + Cyan
ppgplot.pgscr(11, 0.00, 0.50, 1.00) # Blue + Cyan
ppgplot.pgscr(12, 0.50, 0.00, 1.00) # Blue + Magenta
ppgplot.pgscr(13, 1.00, 0.00, 0.50) # Red + Magenta
ppgplot.pgscr(14, 0.33, 0.33, 0.33) # Dark Gray
ppgplot.pgscr(15, 0.66, 0.66, 0.66) # Light Gray
for ci in range(16, hi_col_ind+1):
ppgplot.pgscr(ci, 0.00, 0.00, 0.00) # Black (background)
def reset_colors():
lo_col_ind, hi_col_ind = ppgplot.pgqcol()
ppgplot.pgscir(lo_col_ind, hi_col_ind)
ppgplot.pgscr( 0, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscr( 1, 1.00, 1.00, 1.00) # White (default)
ppgplot.pgscr( 2, 1.00, 0.00, 0.00) # Red
ppgplot.pgscr( 3, 0.00, 1.00, 0.00) # Green
ppgplot.pgscr( 4, 0.00, 0.00, 1.00) # Blue
ppgplot.pgscr( 5, 0.00, 1.00, 1.00) # Cyan (Green + Blue)
ppgplot.pgscr( 6, 1.00, 0.00, 1.00) # Magenta (Red + Blue)
ppgplot.pgscr( 7, 1.00, 1.00, 0.00) # Yellow (Red + Green)
ppgplot.pgscr( 8, 1.00, 0.50, 0.00) # Red + Yellow (Orange)
ppgplot.pgscr( 9, 0.50, 1.00, 0.00) # Green + Yellow
ppgplot.pgscr(10, 0.00, 1.00, 0.50) # Green + Cyan
ppgplot.pgscr(11, 0.00, 0.50, 1.00) # Blue + Cyan
ppgplot.pgscr(12, 0.50, 0.00, 1.00) # Blue + Magenta
ppgplot.pgscr(13, 1.00, 0.00, 0.50) # Red + Magenta
ppgplot.pgscr(14, 0.33, 0.33, 0.33) # Dark Gray
ppgplot.pgscr(15, 0.66, 0.66, 0.66) # Light Gray
for ci in range(16, hi_col_ind+1):
def reset_colors():
lo_col_ind, hi_col_ind = ppgplot.pgqcol()
ppgplot.pgscir(lo_col_ind, hi_col_ind)
ppgplot.pgscr( 0, 0.00, 0.00, 0.00) # Black (background)
ppgplot.pgscr( 1, 1.00, 1.00, 1.00) # White (default)
ppgplot.pgscr( 2, 1.00, 0.00, 0.00) # Red
ppgplot.pgscr( 3, 0.00, 1.00, 0.00) # Green
ppgplot.pgscr( 4, 0.00, 0.00, 1.00) # Blue
ppgplot.pgscr( 5, 0.00, 1.00, 1.00) # Cyan (Green + Blue)
ppgplot.pgscr( 6, 1.00, 0.00, 1.00) # Magenta (Red + Blue)
ppgplot.pgscr( 7, 1.00, 1.00, 0.00) # Yellow (Red + Green)
ppgplot.pgscr( 8, 1.00, 0.50, 0.00) # Red + Yellow (Orange)
ppgplot.pgscr( 9, 0.50, 1.00, 0.00) # Green + Yellow
ppgplot.pgscr(10, 0.00, 1.00, 0.50) # Green + Cyan
ppgplot.pgscr(11, 0.00, 0.50, 1.00) # Blue + Cyan
ppgplot.pgscr(12, 0.50, 0.00, 1.00) # Blue + Magenta
ppgplot.pgscr(13, 1.00, 0.00, 0.50) # Red + Magenta
ppgplot.pgscr(14, 0.33, 0.33, 0.33) # Dark Gray
ppgplot.pgscr(15, 0.66, 0.66, 0.66) # Light Gray
for ci in range(16, hi_col_ind+1):
ppgplot.pgscr(ci, 0.00, 0.00, 0.00) # Black (background)