Skip to content

Commit

Permalink
docs(AnimatedSprite): update no-atlas example to use [cols, rows]
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Jan 16, 2024
1 parent c2bfd63 commit d4a7528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AnimatedSprite } from '@tresjs/cientos'
<Suspense>
<AnimatedSprite
image="https://raw.githubusercontent.com/Tresjs/assets/main/textures/animated-sprite/textureWithoutAtlas.png"
:atlas="16"
:atlas="[16, 1]"
:animation="[0, 15]"
:fps="10"
/>
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/abstractions/animated-sprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Compiling source images into a texture atlas is usually handled by third-party s

## Without an atlas

There may be cases where you don't want to supply a generated JSON atlas as an `atlas` prop. This is possible if you compile your source images in a single row of equally sized columns *and* set the `atlas` prop to the number of columns.
There may be cases where you don't want to supply a generated JSON atlas as an `atlas` prop. This is possible if you compile your source images into equally sized columns and rows *and* set the `atlas` prop to number of columns, number of rows as `[number, number]`.

### Example

Expand Down

0 comments on commit d4a7528

Please sign in to comment.