Commit Graph

189 Commits

Author SHA1 Message Date
Edwin Jakobs
f836d86857 Reflect changes in openrndr (#377) 2025-09-20 06:17:24 +02:00
Edwin Jakobs
b7ba6f6daa Feature variants (#376)
Migrate from buildSrc to build-logic. Setup feature variants.
2025-09-17 10:03:02 +02:00
Edwin Jakobs
a913f3f370 Use openrndr-dependency-catalog and openrndr-module-catalog to resolve dependencies. Publish orx-module-catalog (#374) 2025-09-13 09:54:51 +02:00
Abe Pazos
e1c1165d06 add demos to README.md 2025-08-30 22:05:39 +00:00
Abe Pazos
ea4a2c0d89 [orx-shapes] Demo comments 2025-08-30 23:56:56 +02:00
Abe Pazos
ec5bde5822 add demos to README.md 2025-08-30 12:18:02 +00:00
Abe Pazos
cf0a6c7783 [orx-shapes] Add @OptIn to mute warnings 2025-08-30 14:05:06 +02:00
Abe Pazos
eed873d404 [orx-shapes] Add demos, tweak comments 2025-08-30 14:01:02 +02:00
Abe Pazos
935e7cd9a8 add demos to README.md 2025-08-29 11:10:45 +00:00
Abe Pazos
2e6c637b49 [orx-shapes] Comment the ContourAdjuster and its demos 2025-08-29 13:00:27 +02:00
Abe Pazos
c531c45608 add demos to README.md 2025-08-28 22:07:06 +00:00
Abe Pazos
420bf723e7 collectScreenshots: drop @see... lines
otherwise images are duplicated in README.md
2025-08-28 23:42:49 +02:00
Edwin Jakobs
4e8267ceeb [orx-shapes] Implement GeometricPrimitive2D and GeometricPrimitive3D interfaces in BezierPatch and BezierPatch3D 2025-08-28 18:59:47 +02:00
Abe Pazos
64493302c7 add demos to README.md 2025-08-27 19:48:23 +00:00
Abe Pazos
700b666e5c add demos to README.md 2025-08-27 18:32:18 +00:00
Edwin Jakobs
e599122cf2 add demos to README.md 2025-08-20 20:08:53 +00:00
Edwin Jakobs
fdcffd2756 [orx-shapes] Add explicit casting to Circle in tangent assertion for invertConformal tests 2025-08-20 21:55:38 +02:00
Edwin Jakobs
307b3fc282 [orx-shapes] Extend circle inversion functionalities and update demos 2025-08-20 21:38:58 +02:00
Edwin Jakobs
e17644a247 [orx-shapes] Convert primitive classes to @JvmRecord and implement GeometricPrimitive2D where applicable 2025-08-20 21:27:16 +02:00
Edwin Jakobs
48b61c39e8 [orx-shapes] Add tangent calculation utilities for Circle 2025-08-17 14:51:32 +02:00
Edwin Jakobs
614ec5da94 add demos to README.md 2025-08-16 20:10:23 +00:00
Edwin Jakobs
e92f3c3ff9 [orx-shapes] Adjust circle center position in DemoCircleInversion01 to avoid impossible inversion 2025-08-16 21:54:33 +02:00
Edwin Jakobs
e6997a968f [orx-shapes] Add custom tensions to HobbyCurve and related 2D/3D demos and tests 2025-08-16 17:26:55 +02:00
Edwin Jakobs
72b02ce585 [orx-shapes] Add RectangleGrid abstraction and update related utility functions 2025-08-16 17:26:55 +02:00
Edwin Jakobs
c44175c1c9 [orx-shapes] Add circle inversion primitives and demo examples 2025-08-16 17:26:55 +02:00
Edwin Jakobs
25d0302a68 [orx-shapes] Fix formatting issues in Circle.kt 2025-08-16 17:26:55 +02:00
Abe Pazos
6db05951ef Remove unused imports 2025-08-04 12:00:35 +02:00
Abe Pazos
e6d176bb9b add demos to README.md 2025-08-03 20:32:28 +00:00
Abe Pazos
cb24d4f78d [orx-shapes] BezierPatch: add missing user uniforms, demo (#366) 2025-08-03 22:22:43 +02:00
Edwin Jakobs
771e348631 add demos to README.md 2025-07-06 22:03:48 +00:00
Edwin Jakobs
b259e9c2de [orx-shapes] Add rectangle align, distribute and fit functions 2025-07-06 23:35:40 +02:00
Edwin Jakobs
e944bd30d3 [orx-shapes] Remove System.setProperty() add Camera2D to DemoText01.kt 2025-03-06 12:26:18 +01:00
Edwin Jakobs
ee8a709cc0 [orx-shapes] Add placeIn methods for Rectangle and Box 2025-02-27 10:20:17 +01:00
Edwin Jakobs
6ad584a262 [orx-shapes] Add extensions for creating sub-shapes and positioning boxes
Introduce `Rectangle.sub` and `Box.sub` functions to derive sub-rectangles and sub-boxes from existing shapes using relative dimensions. Add `Box.place` to position a box relative to another using customizable anchors.
2025-02-26 22:12:26 +01:00
Edwin Jakobs
21a3d7f483 add demos to README.md 2025-02-25 06:52:24 +00:00
Edwin Jakobs
b3e8543555 [orx-shapes] Add place function and demo for rectangle placement
Introduce `Rectangle.place` to position rectangles dynamically within bounds using anchor points. Added a demo (`DemoRectanglePlace01`) showcasing a 10x10 grid of rectangles evenly distributed across the canvas.
2025-02-25 07:08:48 +01:00
Edwin Jakobs
17e10a59ee [orx-shapes] Add utilities for sub-list operations in Rectangle grids
Introduced functions for slicing, dropping, and selecting columns in 2D rectangle grids, including `uniformBlock` for random sub-block extraction.
2025-02-20 23:56:52 +01:00
Edwin Jakobs
291038e621 [orx-shapes] Add box splitting and subtraction utilities
Introduce `splitAtX`, `splitAtY`, and `splitAtZ` methods to divide a box along specific axes. Implement `subtract` methods to handle box subtraction and remove intersecting regions, with support for operations on individual boxes and lists of boxes.
2025-02-20 23:56:52 +01:00
Edwin Jakobs
b03e39b52e [orx-shapes] Add rectangle splitting and subtraction utilities
Introduce functions to split rectangles at specified axes and subtract overlapping areas. These utilities allow precise manipulation of rectangle shapes, including dividing and removing intersections while preserving non-overlapping sections.
2025-02-20 23:56:52 +01:00
Edwin Jakobs
26d9625005 add demos to README.md 2025-02-20 16:09:06 +00:00
Edwin Jakobs
a7d878a710 [orx-shapes] Add irregular grid support and demo examples
This commit introduces `Rectangle.irregularGrid`, enabling the creation of grids with irregular spacing based on weights. New helper methods and properties for 2D rectangle lists, such as subgrid selection, bounds calculation, and random access, are also added. Additionally, two new demos showcase regular and irregular grid features.
2025-02-20 16:57:35 +01:00
Edwin Jakobs
3f31cbe117 [orx-shapes] Add transpose function for 2D rectangle grids 2025-02-20 16:57:35 +01:00
Edwin Jakobs
75bba098a2 [orxy-shape] Optimize list initialization with predefined capacity in HobbyCurve.kt 2025-02-02 11:41:34 +01:00
Edwin Jakobs
426e35ebd0 Replace the custom mod function with Kotlin's built-in mod extension. 2025-02-01 14:21:19 +01:00
Abe Pazos
864228d346 add demos to README.md 2025-01-26 20:22:14 +00:00
Abe Pazos
c8f7dd52c6 Demos: ensure all use fun main() = application {
- Adjust some demo window sizes.
- Replace Random.double by Double.uniform
- Tweak some demos so screenshots look more interesting
2025-01-26 20:57:04 +01:00
Edwin Jakobs
969d342e91 [orx-shapes] Enhance ContourBlend with customizable rectification params
Added `distanceTolerance` and `lengthScale` parameters to the `ContourBlend` function for improved flexibility during contour rectification. Default values maintain backward compatibility.
2025-01-24 18:10:47 +01:00
Edwin Jakobs
c059b11841 add demos to README.md 2025-01-22 21:18:39 +00:00
Edwin Jakobs
13c6191cc2 [orx-shapes] Add DemoHilbertOrder01.kt, DemoHilbertOrder02.kt 2025-01-22 22:01:10 +01:00
Edwin Jakobs
0e9e36acba [orx-shapes] Add Hilbert and Morton point ordering in 2d and 3d 2025-01-22 21:05:23 +01:00