Skip to content

Commit

Permalink
Update the docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Jun 20, 2024
1 parent 59e0094 commit 5e81235
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mesh_image.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This file contains the implementation of the `MeshImage` recipe.
using Makie: GeometryBasics

"""
meshimage([xs, ys,] zs)
meshimage!(ax, [xs, ys,] zs)
meshimage([xs, ys,] img)
meshimage!(ax, [xs, ys,] img)
Plots an image on a mesh.
Expand All @@ -18,9 +18,10 @@ but a smaller mesh can still represent the inherent
nonlinearity of the space.
This basically plots a mesh with uv coordinates, and textures it by
the provided image. Its conversion trait is `Image` (TODO: change this to DiscreteSurfaceLike).
the provided image. Its conversion trait is `ImageLike`.
For now, it only accepts RGB images. This could be changed in the future.
!!! tip
You can control the density of the mesh by the `npoints` attribute.
"""
@recipe MeshImage (x, y, img) begin
Expand Down

0 comments on commit 5e81235

Please sign in to comment.