vue + fabricjs implement scratch game

Cai Li Creative Issue 1 | Scratch Lottery·Ten Times Good Luck Everyone has played scratch-off games, and Cai Li is also deeply affected by it, but she just can’t help it; especially Ten times better luck, which always makes people feel happy It feels like there is a high chance of winning; today Cai Li […]

Vue3 + Fabricjs customized National Day exclusive avatar

Vue3 + Fabricjs implement customized avatar 2.0 1. Online customization 2. Project structure 3. Required materials 3.1 Mid-Autumn Festival theme 3.2 National Day theme 3.3 Spring Festival theme 4. Canvas interaction logic optimization 5. Code implementation 5.1 Initialize canvas and controls 5.2 Monitor changes in the original image (avatar uploaded by the user) and perform […]

Vue3 + Fabricjs implement customized avatar 2.0

Vue3 + Fabricjs implement customized avatar 2.0 Born under the national flag and grown in the spring breeze! The National Day is approaching, Caili brings you Customized Avatar 2.0 (National Day Avatar), let us celebrate the motherland’s birthday in the form of code! Welcome everyone to like, collect and follow Foreword If you want to […]

The fabricjs plugin uses

Create Canvas this. canvas = new fabric. Canvas(“canvas”, { fireRightClick: true, // enable right click, the number of button is 3 stopContextMenu: true, // Disable the default right-click menu includeDefaultValues: false, // streamlined json preserveObjectStacking: true, // When the element object is selected, it will remain on the current z-axis and will not jump to […]