Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripting/demos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import { Demos } from '/snippets/demos.jsx'
"scriptingDrawingShapes",
"scriptingTippingConverter",
"scriptingMasonry",
"scriptingDrawImage",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think combining these into one would be great.

"scriptingDrawImageTransforms",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"scriptingDrawImageTransforms",

"scriptingDrawImageMesh",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"scriptingDrawImageMesh",

"scriptingUnitTesting",
"scriptingMultiTouch",
"scriptingNestedPointers",
Expand Down
24 changes: 24 additions & 0 deletions snippets/demos.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,30 @@ export const Demos = ({
editor: "https://rive.app/community/files/25823-text-path-effects/"
}
},
scriptingDrawImage: {
title: "Render an Image with Scripting",
image: "https://static.rive.app/docs/render-image-with-scripting.jpg",
description: "Draw an image from your Assets Panel to your scene.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: "Draw an image from your Assets Panel to your scene.",
description: "Draw and distort image assets with Scripting.",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

I suggest a different image for the marketplace file so you can really easily see when the image is distorted. Maybe one like this?

links: {
editor: "https://rive.app/community/files/26406-49444-draw-an-image-with-scripting/"
}
},
scriptingDrawImageTransforms: {
title: "Transform Images with Scripting",
image: "https://static.rive.app/docs/render-image-transforms-with-scripting.jpg",
description: "Add transforms to your images rendered with Scripting.",
links: {
editor: "https://rive.app/community/files/26452-49556-transform-an-image"
}
},
scriptingDrawImageMesh: {
title: "Draw ImageMeshes with Scripting",
image: "https://static.rive.app/docs/render-image-mesh-with-scripting.jpg",
description: "Draw image meshes with Scripting.",
links: {
editor: "https://rive.app/community/files/26451-draw-an-imagemesh-with-scripting"
}
},
Comment on lines +243 to +258
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
scriptingDrawImageTransforms: {
title: "Transform Images with Scripting",
image: "https://static.rive.app/docs/render-image-transforms-with-scripting.jpg",
description: "Add transforms to your images rendered with Scripting.",
links: {
editor: "https://rive.app/community/files/26452-49556-transform-an-image"
}
},
scriptingDrawImageMesh: {
title: "Draw ImageMeshes with Scripting",
image: "https://static.rive.app/docs/render-image-mesh-with-scripting.jpg",
description: "Draw image meshes with Scripting.",
links: {
editor: "https://rive.app/community/files/26451-draw-an-imagemesh-with-scripting"
}
},

scriptingSlotMachine: {
title: "Slot Machine - Complete Game",
image: "https://static.rive.app/docs/slot-machine.png",
Expand Down