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.
Files changed (68) hide show
  1. {molde-0.1.14 → molde-0.1.15}/PKG-INFO +1 -1
  2. {molde-0.1.14 → molde-0.1.15}/molde/colors/color.py +4 -12
  3. {molde-0.1.14 → molde-0.1.15}/pyproject.toml +1 -1
  4. {molde-0.1.14 → molde-0.1.15}/README.md +0 -0
  5. {molde-0.1.14 → molde-0.1.15}/molde/__init__.py +0 -0
  6. {molde-0.1.14 → molde-0.1.15}/molde/__main__.py +0 -0
  7. {molde-0.1.14 → molde-0.1.15}/molde/actors/__init__.py +0 -0
  8. {molde-0.1.14 → molde-0.1.15}/molde/actors/common_symbols_actor.py +0 -0
  9. {molde-0.1.14 → molde-0.1.15}/molde/actors/ghost_actor.py +0 -0
  10. {molde-0.1.14 → molde-0.1.15}/molde/actors/lines_actor.py +0 -0
  11. {molde-0.1.14 → molde-0.1.15}/molde/actors/round_points_actor.py +0 -0
  12. {molde-0.1.14 → molde-0.1.15}/molde/actors/square_points_actor.py +0 -0
  13. {molde-0.1.14 → molde-0.1.15}/molde/colors/__init__.py +0 -0
  14. {molde-0.1.14 → molde-0.1.15}/molde/colors/color_names.py +0 -0
  15. {molde-0.1.14 → molde-0.1.15}/molde/fonts/IBMPlexMono-Bold.ttf +0 -0
  16. {molde-0.1.14 → molde-0.1.15}/molde/fonts/IBMPlexMono-Regular.ttf +0 -0
  17. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_dark_theme.svg +0 -0
  18. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_disabled_dark_theme.svg +0 -0
  19. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_disabled_light_theme.svg +0 -0
  20. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_down_light_theme.svg +0 -0
  21. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_left_dark_theme.svg +0 -0
  22. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_left_light_theme.svg +0 -0
  23. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_right_dark_theme.svg +0 -0
  24. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_right_light_theme.svg +0 -0
  25. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_dark_theme.svg +0 -0
  26. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_disabled_dark_theme.svg +0 -0
  27. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_disabled_light_theme.svg +0 -0
  28. {molde-0.1.14 → molde-0.1.15}/molde/icons/arrow_up_light_theme.svg +0 -0
  29. {molde-0.1.14 → molde-0.1.15}/molde/icons/check_box_image.svg +0 -0
  30. {molde-0.1.14 → molde-0.1.15}/molde/interactor_styles/__init__.py +0 -0
  31. {molde-0.1.14 → molde-0.1.15}/molde/interactor_styles/arcball_camera_style.py +0 -0
  32. {molde-0.1.14 → molde-0.1.15}/molde/interactor_styles/box_selection_style.py +0 -0
  33. {molde-0.1.14 → molde-0.1.15}/molde/main_window.ui +0 -0
  34. {molde-0.1.14 → molde-0.1.15}/molde/pickers/__init__.py +0 -0
  35. {molde-0.1.14 → molde-0.1.15}/molde/pickers/cell_area_picker.py +0 -0
  36. {molde-0.1.14 → molde-0.1.15}/molde/pickers/cell_property_area_picker.py +0 -0
  37. {molde-0.1.14 → molde-0.1.15}/molde/poly_data/__init__.py +0 -0
  38. {molde-0.1.14 → molde-0.1.15}/molde/poly_data/arrows.py +0 -0
  39. {molde-0.1.14 → molde-0.1.15}/molde/poly_data/lines_data.py +0 -0
  40. {molde-0.1.14 → molde-0.1.15}/molde/poly_data/simple_shapes.py +0 -0
  41. {molde-0.1.14 → molde-0.1.15}/molde/poly_data/vertices_data.py +0 -0
  42. {molde-0.1.14 → molde-0.1.15}/molde/render_widgets/__init__.py +0 -0
  43. {molde-0.1.14 → molde-0.1.15}/molde/render_widgets/animated_render_widget.py +0 -0
  44. {molde-0.1.14 → molde-0.1.15}/molde/render_widgets/common_render_widget.py +0 -0
  45. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/__init__.py +0 -0
  46. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/common.qss +0 -0
  47. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/create_color_page.py +0 -0
  48. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/mainwindow.ui +0 -0
  49. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qcheckbox.qss +0 -0
  50. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qinputs.qss +0 -0
  51. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qlayouts.qss +0 -0
  52. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qmenubar.qss +0 -0
  53. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qprogressbar.qss +0 -0
  54. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qpushbutton.qss +0 -0
  55. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qradiobutton.qss +0 -0
  56. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qscrollbar.qss +0 -0
  57. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qslider.qss +0 -0
  58. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtablewidget.qss +0 -0
  59. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtabwidget.qss +0 -0
  60. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtoolbar.qss +0 -0
  61. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtoolbuttons.qss +0 -0
  62. {molde-0.1.14 → molde-0.1.15}/molde/stylesheets/qtreewidget.qss +0 -0
  63. {molde-0.1.14 → molde-0.1.15}/molde/ui_files/messages/new_loading_window.ui +0 -0
  64. {molde-0.1.14 → molde-0.1.15}/molde/utils/__init__.py +0 -0
  65. {molde-0.1.14 → molde-0.1.15}/molde/utils/format_sequences.py +0 -0
  66. {molde-0.1.14 → molde-0.1.15}/molde/utils/poly_data_utils.py +0 -0
  67. {molde-0.1.14 → molde-0.1.15}/molde/utils/tree_info.py +0 -0
  68. {molde-0.1.14 → molde-0.1.15}/molde/windows/loading_window.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: molde
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary:
5
5
  Author: André Fernandes
6
6
  Author-email: fpf.andre@gmail.com
@@ -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
- new_color = self.copy()
221
- new_color.r = round(np.clip(self.r * factor, 0, 255))
222
- new_color.g = round(np.clip(self.g * factor, 0, 255))
223
- new_color.b = round(np.clip(self.b * factor, 0, 255))
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "molde"
3
- version = "0.1.14"
3
+ version = "0.1.15"
4
4
  description = ""
5
5
  authors = ["André Fernandes <fpf.andre@gmail.com>"]
6
6
  readme = "README.md"
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