Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Plut committed Mar 9, 2022
1 parent 677e6e4 commit 322471d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/transformations.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ path_extrude
```

```@repl 0
s = G.path_extrude([[[0,0.],[3,0],[5,1]]])*(G.square(10)-([1,2]+G.square([6,5])));
s = path_extrude([[[0,0.],[3,0],[5,1]]])*(square(10)-([1,2]+square([6,5])));
png("path_extrude", s); # hide
```
![example: single-path extrusion of a shape](path_extrude.png)
Expand Down
2 changes: 1 addition & 1 deletion src/ConstructiveGeometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ struct RandomColor{D} <: AbstractTransform{D}
end
@inline mesh(g::MeshOptions, c::RandomColor{3}, (m,)) =
VolumeMesh(TriangleMesh(vertices(m), faces(m),
rand(Colors.RGB{N0f8}, size(faces(m)))))
Colors.RGBA{N0f8}.(rand(Colors.RGB{N0f8}, size(faces(m))))))
"""
randomcolor(s...)
Expand Down

0 comments on commit 322471d

Please sign in to comment.