Commit Graph

1646 Commits

Author SHA1 Message Date
Edwin Jakobs
0046348410 [orx-color] Add color transforms from OPENRNDR, add colorMatrix {} 2025-02-26 18:01:36 +01:00
Edwin Jakobs
ef1b8a6493 Upgrade to Gradle 8.13 2025-02-26 15:03:00 +01:00
Edwin Jakobs
2053b24755 add demos to README.md 2025-02-26 12:19:07 +00:00
Edwin Jakobs
404d8b4332 [orx-text-writer] Handle nullable fontMap 2025-02-26 13:00:55 +01:00
Edwin Jakobs
46744025a8 [orx-text-writer] Add horizontal and vertical text alignment features
Introduced horizontalAlign and verticalAlign properties in WriteStyle and TextWriter, enabling precise text alignment within bounding boxes. Enhanced text token management to support alignment calculations and adjusted demos to showcase the new capabilities.
2025-02-26 12:27:50 +01:00
Edwin Jakobs
a4c053183c add demos to README.md 2025-02-25 11:51:39 +00:00
Edwin Jakobs
9a93d95318 [orx-shadestyles] Improve gradient and imageFill shadestyles 2025-02-25 12:17:06 +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
0a3051a088 [orx-noise] Add utility functions for random Boolean generation
Introduce `Boolean.random` and `Boolean.randoms` functions for generating random Boolean values with a specified probability. These utilities support single values and lists, using a customizable `Random` instance.
2025-02-24 12:30:09 +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
6e53086693 add demos to README.md 2025-02-20 19:09:09 +00:00
Edwin Jakobs
f636b6e057 add auto-generated README 2025-02-20 19:09:08 +00:00
Edwin Jakobs
78ddb73850 [orx-text-on-contour] Add support for drawing text along contours 2025-02-20 19:54:59 +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
70e87c73ce [orx-noise] Add Double.uniforms() 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
579921ed15 add demos to README.md 2025-02-19 22:09:28 +00:00
Edwin Jakobs
e441661dbe [orx-text-writer] Add writer demo 2025-02-19 22:21:15 +01:00
Edwin Jakobs
03a2837c20 add demos to README.md 2025-02-02 11:07:28 +00:00
Edwin Jakobs
1d9883e15b add auto-generated README 2025-02-02 11:07:28 +00: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
64ac42913c [orx-noise] Refactor LinearRangeExtensions, add SimplexRangeExtensions 2025-02-02 11:41:34 +01:00
Edwin Jakobs
c88c4454e1 [orx-math] Add orx-math module 2025-02-02 11:41:34 +01:00
Edwin Jakobs
13bc4bc472 add demos to README.md 2025-02-01 13:35:43 +00:00
Edwin Jakobs
2208de2fb3 [orx-noise] Add LinearRange extension functions for uniform and hashed values 2025-02-01 14:21:19 +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
b86f3a9d02 [orx-mesh-generators] DemoAll: include loaded texture 2025-01-31 17:20:24 +01:00
Abe Pazos
b7f6905a33 [orx-mesh-generators] Add texture coords to dodecahedron 2025-01-31 17:17:29 +01:00
Abe Pazos
6c9ac412de [orx-mesh-generators] Fix uv coordinates in sphere
The u coordinate was in the 0.5~1.5 range before this change,
now it's between 0.0 and 1.0.
2025-01-31 17:16:14 +01:00
Abe Pazos
b0bfa5c136 [orx-obj-loader] skip padding when saving obj (#353) 2025-01-31 11:21:35 +01:00
Edwin Jakobs
79e4df32d4 [orx-mesh-generators] Change vertex formats used by meshVertexBuffer and meshVertexBufferWithColor to be Std430 compliant 2025-01-30 16:56:06 +01:00
Edwin Jakobs
907a96c87a Upgrade to Gradle 8.12.1, Kotlin 2.1.10, Kotlinx-serialization 1.9.0, Kotlinx-coroutines-1.10.1, Junit Jupiter 5.11.4, Jgit 7.1.0.202411261347-r 2025-01-30 16:56:06 +01:00
Edwin Jakobs
de637c087f Improve error messages 2025-01-30 16:56:06 +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
1975a820fc add demos to README.md 2025-01-25 13:25:10 +00:00
Edwin Jakobs
c1d2ea4ecc [orx-mesh-noise] Refactor barycentric and mesh sampling logic into specialized files. 2025-01-25 13:57:46 +01:00
Edwin Jakobs
e32fcba77b [orx-mesh-generators] Refine error messages in estimateTangents function 2025-01-25 13:57:46 +01:00
Edwin Jakobs
8103b76c39 [orx-mesh] Add pose computation method to Point class, Point.pose() 2025-01-25 13:57:46 +01:00
Edwin Jakobs
72dc7e0a20 [orx-mesh] Add method to compute 3D position from barycentric coordinates, IIndexedPolygon.position 2025-01-25 13:57:46 +01:00
Edwin Jakobs
6a6855ba32 [orx-mesh] Update the IndexedPolygon.point function to use IVertexData instead of VertexData. 2025-01-25 13:57:46 +01:00
Edwin Jakobs
302c11982f [orx-mesh-noise] Fix barycentric weighting 2025-01-25 13:57:46 +01:00
Edwin Jakobs
023b52a4fc [orx-mesh] Add generated and verified documentation 2025-01-25 13:57:46 +01:00
Edwin Jakobs
3073e88875 [orx-kdtree] Add generated and verified documentation 2025-01-25 13:57:46 +01:00
Abe Pazos
fc4f7275fb Demos: ensure 720px wide, reduce indentation
openrndr-demos, orx-color, orx-jumpflood, orx-no-clear
2025-01-25 13:30:18 +01:00
Abe Pazos
f84bf69713 Demos: ensure 720px wide, reduce indentation 2025-01-24 23:05:40 +01:00