Skip to content

Commit

Permalink
Added a scale property
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff committed Feb 4, 2025
1 parent 55ddd1b commit cda4863
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 187 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ will automatically fall back to the best matching available image when rendering
- **poster**: `string | undefined` - URL of the poster image. Optional.
- **fillStyle**: `string` - Fill style of the canvas. Default: `'#00000000'`
- **clearCanvas**: `boolean` - Clear the canvas before drawing. Default: `false`
- **scale**: `number` - Scale of the image. Default: `1`
- **showDebugInfo**: `boolean` - Show debug info. Default: `false`
- **name**: `string` - Name of the FastImageSequence instance. Default: `'FastImageSequence'`

Expand Down Expand Up @@ -205,6 +206,22 @@ sequence.progress = value;

- `value` is a number that sets the current progress of the image sequence.

### scale

This getter-and-setter method retrieves or sets the scale of the image sequence. Default: 1.

```typescript
sequence.scale = 2; // zoom in
```

### frameCount

This getter-and-setter method retrieves or sets the number of frames in the image sequence. You can use it to, for example, increase the number of frames in the sequence dynamically.

```typescript
sequence.frameCount = sequence.frameCount + 100;
```

### loadProgress

This is a getter method that retrieves the current load progress of the image sequence.
Expand Down
Loading

0 comments on commit cda4863

Please sign in to comment.