kopia lustrzana https://github.com/corrscope/corrscope
Switch to blue line by default
rodzic
0968052566
commit
b0de9be500
|
@ -18,6 +18,13 @@ if TYPE_CHECKING:
|
||||||
from ovgenpy.channel import ChannelConfig
|
from ovgenpy.channel import ChannelConfig
|
||||||
|
|
||||||
|
|
||||||
|
def default_color():
|
||||||
|
colors = np.array([int(x, 16) for x in '1f 77 b4'.split()], dtype=float)
|
||||||
|
colors /= np.amax(colors)
|
||||||
|
colors **= 1/3
|
||||||
|
|
||||||
|
return tuple(colors.tolist()) # tolist() converts np.float64 to float
|
||||||
|
|
||||||
|
|
||||||
@register_config(always_dump='bg_color init_line_color line_width')
|
@register_config(always_dump='bg_color init_line_color line_width')
|
||||||
class RendererConfig:
|
class RendererConfig:
|
||||||
|
@ -25,7 +32,7 @@ class RendererConfig:
|
||||||
height: int
|
height: int
|
||||||
|
|
||||||
bg_color: Any = 'black'
|
bg_color: Any = 'black'
|
||||||
init_line_color: Any = 'white'
|
init_line_color: Any = default_color()
|
||||||
# line_width: Optional[float] = None # TODO
|
# line_width: Optional[float] = None # TODO
|
||||||
|
|
||||||
create_window: bool = False
|
create_window: bool = False
|
||||||
|
|
Ładowanie…
Reference in New Issue