This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyray | |
from raylib.colors import ( | |
RAYWHITE, | |
DARKGRAY, | |
MAROON, | |
) | |
from multiprocessing import Process | |
def launch_window(title): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
def fraction_to_value(fraction, min_value, max_value): | |
return (max_value - min_value) * fraction + min_value | |
def value_to_fraction(value, min_value, max_value): | |
return float(value - min_value) / (max_value - min_value) |