1.2.70 • Published 5 days ago

scratch-render v1.2.70

Weekly downloads
1,779
License
BSD-3-Clause
Repository
github
Last release
5 days ago

scratch-render

WebGL-based rendering engine for Scratch 3.0

CircleCI

Greenkeeper badge

Installation

npm install https://github.com/scratchfoundation/scratch-render.git

Setup

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Scratch WebGL rendering demo</title>
    </head>

    <body>
        <canvas id="myStage"></canvas>
        <canvas id="myDebug"></canvas>
    </body>
</html>
var canvas = document.getElementById('myStage');
var debug = document.getElementById('myDebug');

// Instantiate the renderer
var renderer = new require('scratch-render')(canvas);

// Connect to debug canvas
renderer.setDebugCanvas(debug);

// Start drawing
function drawStep() {
    renderer.draw();
    requestAnimationFrame(drawStep);
}
drawStep();

// Connect to worker (see "playground" example)
var worker = new Worker('worker.js');
renderer.connectWorker(worker);

Standalone Build

npm run build
<script src="/path/to/render.js"></script>
<script>
    var renderer = new window.RenderWebGLLocal();
    // do things
</script>

Testing

npm test

Donate

We provide Scratch free of charge, and want to keep it that way! Please consider making a donation to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!

Committing

This project uses semantic release to ensure version bumps follow semver so that projects depending on it don't break unexpectedly.

In order to automatically determine version updates, semantic release expects commit messages to follow the conventional-changelog specification.

You can use the commitizen CLI to make commits formatted in this way:

npm install -g commitizen@latest cz-conventional-changelog@latest

Now you're ready to make commits using git cz.

1.2.69

5 days ago

1.2.70

5 days ago

1.2.60

11 days ago

1.2.63

9 days ago

1.2.64

8 days ago

1.2.61

11 days ago

1.2.62

10 days ago

1.2.67

6 days ago

1.2.68

6 days ago

1.2.65

8 days ago

1.2.66

7 days ago

1.2.56

13 days ago

1.2.57

13 days ago

1.2.54

14 days ago

1.2.55

14 days ago

1.2.58

12 days ago

1.2.59

12 days ago

1.2.52

15 days ago

1.2.53

15 days ago

1.1.52

1 month ago

1.1.51

1 month ago

1.1.50

1 month ago

1.1.53

1 month ago

1.1.29

2 months ago

1.1.28

2 months ago

1.1.30

2 months ago

1.1.34

2 months ago

1.1.33

2 months ago

1.1.32

2 months ago

1.1.31

2 months ago

1.1.38

2 months ago

1.1.37

2 months ago

1.1.36

2 months ago

1.1.35

2 months ago

1.1.39

2 months ago

1.1.41

2 months ago

1.1.40

2 months ago

1.1.45

1 month ago

1.1.44

2 months ago

1.1.43

2 months ago

1.1.42

2 months ago

1.1.49

1 month ago

1.1.48

1 month ago

1.1.47

1 month ago

1.1.46

1 month ago

1.1.12

2 months ago

1.1.11

2 months ago

1.1.10

2 months ago

1.1.16

2 months ago

1.1.15

2 months ago

1.1.14

2 months ago

1.1.13

2 months ago

1.1.19

2 months ago

1.1.18

2 months ago

1.1.17

2 months ago

1.1.23

2 months ago

1.1.22

2 months ago

1.1.21

2 months ago

1.1.20

2 months ago

1.1.27

2 months ago

1.1.26

2 months ago

1.1.25

2 months ago

1.1.24

2 months ago

1.1.1

2 months ago

1.1.0

2 months ago

1.1.9

2 months ago

1.1.8

2 months ago

1.1.7

2 months ago

1.1.6

2 months ago

1.1.5

2 months ago

1.1.4

2 months ago

1.1.3

2 months ago

1.1.2

2 months ago

1.0.307

2 months ago

1.0.306

2 months ago

1.0.321

2 months ago

1.0.320

2 months ago

1.0.327

2 months ago

1.0.326

2 months ago

1.0.329

2 months ago

1.0.328

2 months ago

1.0.323

2 months ago

1.0.322

2 months ago

1.0.325

2 months ago

1.0.324

2 months ago

1.0.319

2 months ago

1.0.310

2 months ago

1.0.316

2 months ago

1.0.315

2 months ago

1.0.318

2 months ago

1.0.317

2 months ago

1.0.312

2 months ago

1.0.311

2 months ago

1.0.314

2 months ago

1.0.313

2 months ago

1.0.309

2 months ago

1.0.308

2 months ago

1.2.41

24 days ago

1.2.42

24 days ago

1.2.40

24 days ago

1.2.45

21 days ago

1.2.46

21 days ago

1.2.43

23 days ago

1.2.44

22 days ago

1.2.49

17 days ago

1.2.47

17 days ago

1.2.48

17 days ago

1.2.50

16 days ago

1.2.51

16 days ago

1.2.18

1 month ago

1.2.19

1 month ago

1.2.20

1 month ago

1.2.23

1 month ago

1.2.24

1 month ago

1.2.21

1 month ago

1.2.22

1 month ago

1.2.27

29 days ago

1.2.28

29 days ago

1.2.25

1 month ago

1.2.26

1 month ago

1.2.29

28 days ago

1.2.30

28 days ago

1.2.31

28 days ago

1.2.34

26 days ago

1.2.35

26 days ago

1.2.32

27 days ago

1.2.33

27 days ago

1.2.38

25 days ago

1.2.39

24 days ago

1.2.36

26 days ago

1.2.37

25 days ago

1.2.12

1 month ago

1.2.13

1 month ago

1.2.10

1 month ago

1.2.11

1 month ago

1.2.16

1 month ago

1.2.17

1 month ago

1.2.14

1 month ago

1.2.15

1 month ago

1.0.330

2 months ago

1.0.332

2 months ago

1.0.331

2 months ago

1.0.334

2 months ago

1.0.333

2 months ago

1.0.336

2 months ago

1.0.335

2 months ago

1.2.0

1 month ago

1.2.8

1 month ago

1.2.7

1 month ago

1.2.6

1 month ago

1.2.5

1 month ago

1.2.4

1 month ago

1.2.3

1 month ago

1.2.2

1 month ago

1.2.1

1 month ago

1.2.9

1 month ago

1.0.305

2 months ago

1.0.304

2 months ago

1.0.301

2 months ago

1.0.300

2 months ago

1.0.303

2 months ago

1.0.302

2 months ago

1.0.200

4 months ago

1.0.206

4 months ago

1.0.205

4 months ago

1.0.208

4 months ago

1.0.207

4 months ago

1.0.202

4 months ago

1.0.201

4 months ago

1.0.204

4 months ago

1.0.203

4 months ago

1.0.264

3 months ago

1.0.143

6 months ago

1.0.263

3 months ago

1.0.142

6 months ago

1.0.266

3 months ago

1.0.145

6 months ago

1.0.265

3 months ago

1.0.144

6 months ago

1.0.260

3 months ago

1.0.262

3 months ago

1.0.261

3 months ago

1.0.268

3 months ago

1.0.147

5 months ago

1.0.267

3 months ago

1.0.146

5 months ago

1.0.149

5 months ago

1.0.269

3 months ago

1.0.148

5 months ago

1.0.253

3 months ago

1.0.252

3 months ago

1.0.255

3 months ago

1.0.254

3 months ago

1.0.251

3 months ago

1.0.250

3 months ago

1.0.257

3 months ago

1.0.256

3 months ago

1.0.259

3 months ago

1.0.258

3 months ago

1.0.286

3 months ago

1.0.165

5 months ago

1.0.285

3 months ago

1.0.164

5 months ago

1.0.288

3 months ago

1.0.167

5 months ago

1.0.287

3 months ago

1.0.166

5 months ago

1.0.282

3 months ago

1.0.161

5 months ago

1.0.281

3 months ago

1.0.160

5 months ago

1.0.284

3 months ago

1.0.163

5 months ago

1.0.283

3 months ago

1.0.162

5 months ago

1.0.169

5 months ago

1.0.289

3 months ago

1.0.168

5 months ago

1.0.280

3 months ago

1.0.275

3 months ago

1.0.154

5 months ago

1.0.274

3 months ago

1.0.153

5 months ago

1.0.277

3 months ago

1.0.156

5 months ago

1.0.276

3 months ago

1.0.155

5 months ago

1.0.271

3 months ago

1.0.150

5 months ago

1.0.270

3 months ago

1.0.273

3 months ago

1.0.152

5 months ago

1.0.272

3 months ago

1.0.151

5 months ago

1.0.279

3 months ago

1.0.158

5 months ago

1.0.278

3 months ago

1.0.157

5 months ago

1.0.159

5 months ago

1.0.220

4 months ago

1.0.222

4 months ago

1.0.221

4 months ago

1.0.228

3 months ago

1.0.227

3 months ago

1.0.229

3 months ago

1.0.224

4 months ago

1.0.223

4 months ago

1.0.226

3 months ago

1.0.225

3 months ago

1.0.211

4 months ago

1.0.210

4 months ago

1.0.217

4 months ago

1.0.216

4 months ago

1.0.219

4 months ago

1.0.218

4 months ago

1.0.213

4 months ago

1.0.212

4 months ago

1.0.215

4 months ago

1.0.214

4 months ago

1.0.209

4 months ago

1.0.242

3 months ago

1.0.241

3 months ago

1.0.244

3 months ago

1.0.243

3 months ago

1.0.240

3 months ago

1.0.249

3 months ago

1.0.246

3 months ago

1.0.245

3 months ago

1.0.248

3 months ago

1.0.247

3 months ago

1.0.231

3 months ago

1.0.230

3 months ago

1.0.233

3 months ago

1.0.232

3 months ago

1.0.239

3 months ago

1.0.238

3 months ago

1.0.235

3 months ago

1.0.234

3 months ago

1.0.237

3 months ago

1.0.236

3 months ago

1.0.187

5 months ago

1.0.186

5 months ago

1.0.189

4 months ago

1.0.188

4 months ago

1.0.183

5 months ago

1.0.182

5 months ago

1.0.185

5 months ago

1.0.184

5 months ago

1.0.181

5 months ago

1.0.180

5 months ago

1.0.297

2 months ago

1.0.176

5 months ago

1.0.296

3 months ago

1.0.175

5 months ago

1.0.299

2 months ago

1.0.178

5 months ago

1.0.298

2 months ago

1.0.177

5 months ago

1.0.293

3 months ago

1.0.172

5 months ago

1.0.292

3 months ago

1.0.171

5 months ago

1.0.295

3 months ago

1.0.174

5 months ago

1.0.294

3 months ago

1.0.173

5 months ago

1.0.179

5 months ago

1.0.291

3 months ago

1.0.170

5 months ago

1.0.290

3 months ago

1.0.198

4 months ago

1.0.197

4 months ago

1.0.199

4 months ago

1.0.194

4 months ago

1.0.193

4 months ago

1.0.196

4 months ago

1.0.195

4 months ago

1.0.190

4 months ago

1.0.192

4 months ago

1.0.191

4 months ago

1.0.141

6 months ago

1.0.140

6 months ago

1.0.139

6 months ago

1.0.138

6 months ago

1.0.137

6 months ago

1.0.136

6 months ago

1.0.134

6 months ago

1.0.135

6 months ago

1.0.133

6 months ago

1.0.132

6 months ago

1.0.131

6 months ago

1.0.130

6 months ago

1.0.129

6 months ago

1.0.128

6 months ago

1.0.127

6 months ago

1.0.123

6 months ago

1.0.122

6 months ago

1.0.125

6 months ago

1.0.124

6 months ago

1.0.126

6 months ago

1.0.121

6 months ago

1.0.120

6 months ago

1.0.119

6 months ago

1.0.118

6 months ago

1.0.117

6 months ago

1.0.116

6 months ago

1.0.115

6 months ago

1.0.114

6 months ago

1.0.113

6 months ago

1.0.112

6 months ago

1.0.110

6 months ago

1.0.111

6 months ago

1.0.109

7 months ago

1.0.107

7 months ago

1.0.108

7 months ago

1.0.106

7 months ago

1.0.105

7 months ago

1.0.104

7 months ago

1.0.103

7 months ago

1.0.102

7 months ago

1.0.101

7 months ago

1.0.99

7 months ago

1.0.100

7 months ago

1.0.98

7 months ago

1.0.97

7 months ago

1.0.96

7 months ago

1.0.95

7 months ago

1.0.94

7 months ago

1.0.93

7 months ago

1.0.91

7 months ago

1.0.90

7 months ago

1.0.92

7 months ago

1.0.89

7 months ago

1.0.88

7 months ago

1.0.87

7 months ago

1.0.86

7 months ago

1.0.85

7 months ago

1.0.84

7 months ago

1.0.83

7 months ago

1.0.82

7 months ago

1.0.80

7 months ago

1.0.81

7 months ago

1.0.79

7 months ago

1.0.77

7 months ago

1.0.78

7 months ago

1.0.76

7 months ago

1.0.75

8 months ago

1.0.74

8 months ago

1.0.73

8 months ago

1.0.72

8 months ago

1.0.71

8 months ago

1.0.70

8 months ago

1.0.69

8 months ago

1.0.68

8 months ago

1.0.67

8 months ago

1.0.66

8 months ago

1.0.65

8 months ago

1.0.64

8 months ago

1.0.62

8 months ago

1.0.61

8 months ago

1.0.60

8 months ago

1.0.63

8 months ago

1.0.59

8 months ago

1.0.58

8 months ago

1.0.57

8 months ago

1.0.56

8 months ago

1.0.55

8 months ago

1.0.54

8 months ago

1.0.53

8 months ago

1.0.49

8 months ago

1.0.51

8 months ago

1.0.50

8 months ago

1.0.52

8 months ago

1.0.48

8 months ago

1.0.47

8 months ago

1.0.44

8 months ago

1.0.46

8 months ago

1.0.45

8 months ago

1.0.39

8 months ago

1.0.38

8 months ago

1.0.40

8 months ago

1.0.43

8 months ago

1.0.42

8 months ago

1.0.41

8 months ago

1.0.37

8 months ago

1.0.36

8 months ago

1.0.35

8 months ago

1.0.34

8 months ago

1.0.33

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.32

8 months ago

1.0.31

8 months ago

1.0.30

8 months ago

1.0.22

8 months ago

1.0.21

8 months ago

1.0.20

8 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.23

8 months ago

1.0.27

8 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago

1.0.0-hotfix.1

11 months ago

0.1.0

8 years ago

0.1.0-1474949857

8 years ago

0.1.0-9f26a

8 years ago

0.1.0-dd60a

8 years ago

0.1.0-e6d1d

8 years ago

0.1.0-223e3

8 years ago

0.1.0-f1b92

8 years ago

0.1.0-13e23

8 years ago

0.1.0-cf57e

8 years ago

0.1.0-d28e5

8 years ago

0.1.0-78e63

8 years ago

0.1.0-020b6

8 years ago

0.0.1-48e62

8 years ago

0.0.1-54395

8 years ago

0.0.0-alpha.0

8 years ago