molde 0.1.14__tar.gz → 0.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {molde-0.1.14 → molde-0.1.15}/PKG-INFO +1 -1
- {molde-0.1.14 → molde-0.1.15}/molde/colors/color.py +4 -12
- {molde-0.1.14 → molde-0.1.15}/pyproject.toml +1 -1
- {molde-0.1.14 → molde-0.1.15}/README.md +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/__main__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/actors/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/actors/common_symbols_actor.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/actors/ghost_actor.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/actors/lines_actor.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/actors/round_points_actor.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/actors/square_points_actor.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/colors/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/colors/color_names.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/fonts/IBMPlexMono-Bold.ttf +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/fonts/IBMPlexMono-Regular.ttf +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_dark_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_disabled_dark_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_disabled_light_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_light_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_left_dark_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_left_light_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_right_dark_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_right_light_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_dark_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_disabled_dark_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_disabled_light_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_light_theme.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/icons/check_box_image.svg +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/interactor_styles/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/interactor_styles/arcball_camera_style.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/interactor_styles/box_selection_style.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/main_window.ui +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/pickers/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/pickers/cell_area_picker.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/pickers/cell_property_area_picker.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/poly_data/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/poly_data/arrows.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/poly_data/lines_data.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/poly_data/simple_shapes.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/poly_data/vertices_data.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/render_widgets/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/render_widgets/animated_render_widget.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/render_widgets/common_render_widget.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/common.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/create_color_page.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/mainwindow.ui +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qcheckbox.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qinputs.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qlayouts.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qmenubar.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qprogressbar.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qpushbutton.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qradiobutton.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qscrollbar.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qslider.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtablewidget.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtabwidget.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtoolbar.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtoolbuttons.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtreewidget.qss +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/ui_files/messages/new_loading_window.ui +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/utils/__init__.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/utils/format_sequences.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/utils/poly_data_utils.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/utils/tree_info.py +0 -0
- {molde-0.1.14 → molde-0.1.15}/molde/windows/loading_window.py +0 -0
@@ -217,12 +217,10 @@ class Color:
|
|
217
217
|
return Color(self.r, self.g, self.b, self.a)
|
218
218
|
|
219
219
|
def apply_factor(self, factor: float | int) -> "Color":
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
return new_color
|
220
|
+
r = round(np.clip(self.r * factor, 0, 255))
|
221
|
+
g = round(np.clip(self.g * factor, 0, 255))
|
222
|
+
b = round(np.clip(self.b * factor, 0, 255))
|
223
|
+
return Color.from_rgba(r, g, b, self.a)
|
226
224
|
|
227
225
|
def with_brightness(self, brightness: int) -> "Color":
|
228
226
|
"""
|
@@ -265,9 +263,3 @@ class Color:
|
|
265
263
|
b if (b is not None) else self.b,
|
266
264
|
a if (a is not None) else self.a,
|
267
265
|
)
|
268
|
-
|
269
|
-
def __repr__(self):
|
270
|
-
return f"Color(r={self.r}, g={self.g}, b={self.b}, a={self.a})"
|
271
|
-
|
272
|
-
def __eq__(self, other: "Color"):
|
273
|
-
return self.r == other.r and self.g == other.g and self.b == other.b and self.a == other.a
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|