1.2.70 • Published 23 days ago

scratch-render v1.2.70

Weekly downloads
1,779
License
BSD-3-Clause
Repository
github
Last release
23 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

23 days ago

1.2.70

23 days ago

1.2.60

29 days ago

1.2.63

27 days ago

1.2.64

26 days ago

1.2.61

28 days ago

1.2.62

28 days ago

1.2.67

24 days ago

1.2.68

23 days ago

1.2.65

25 days ago

1.2.66

25 days ago

1.2.56

1 month ago

1.2.57

1 month ago

1.2.54

1 month ago

1.2.55

1 month ago

1.2.58

30 days ago

1.2.59

29 days ago

1.2.52

1 month ago

1.2.53

1 month ago

1.1.52

2 months ago

1.1.51

2 months ago

1.1.50

2 months ago

1.1.53

2 months 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

2 months ago

1.1.44

2 months ago

1.1.43

2 months ago

1.1.42

2 months ago

1.1.49

2 months ago

1.1.48

2 months ago

1.1.47

2 months ago

1.1.46

2 months 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

3 months ago

1.1.0

3 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

3 months ago

1.1.2

3 months ago

1.0.307

3 months ago

1.0.306

3 months ago

1.0.321

3 months ago

1.0.320

3 months ago

1.0.327

3 months ago

1.0.326

3 months ago

1.0.329

3 months ago

1.0.328

3 months ago

1.0.323

3 months ago

1.0.322

3 months ago

1.0.325

3 months ago

1.0.324

3 months ago

1.0.319

3 months ago

1.0.310

3 months ago

1.0.316

3 months ago

1.0.315

3 months ago

1.0.318

3 months ago

1.0.317

3 months ago

1.0.312

3 months ago

1.0.311

3 months ago

1.0.314

3 months ago

1.0.313

3 months ago

1.0.309

3 months ago

1.0.308

3 months ago

1.2.41

1 month ago

1.2.42

1 month ago

1.2.40

1 month ago

1.2.45

1 month ago

1.2.46

1 month ago

1.2.43

1 month ago

1.2.44

1 month ago

1.2.49

1 month ago

1.2.47

1 month ago

1.2.48

1 month ago

1.2.50

1 month ago

1.2.51

1 month ago

1.2.18

2 months ago

1.2.19

2 months ago

1.2.20

2 months ago

1.2.23

2 months ago

1.2.24

2 months ago

1.2.21

2 months ago

1.2.22

2 months ago

1.2.27

2 months ago

1.2.28

2 months ago

1.2.25

2 months ago

1.2.26

2 months ago

1.2.29

2 months ago

1.2.30

2 months ago

1.2.31

2 months ago

1.2.34

1 month ago

1.2.35

1 month ago

1.2.32

1 month ago

1.2.33

1 month ago

1.2.38

1 month ago

1.2.39

1 month ago

1.2.36

1 month ago

1.2.37

1 month ago

1.2.12

2 months ago

1.2.13

2 months ago

1.2.10

2 months ago

1.2.11

2 months ago

1.2.16

2 months ago

1.2.17

2 months ago

1.2.14

2 months ago

1.2.15

2 months ago

1.0.330

3 months ago

1.0.332

3 months ago

1.0.331

3 months ago

1.0.334

3 months ago

1.0.333

3 months ago

1.0.336

3 months ago

1.0.335

3 months ago

1.2.0

2 months ago

1.2.8

2 months ago

1.2.7

2 months ago

1.2.6

2 months ago

1.2.5

2 months ago

1.2.4

2 months ago

1.2.3

2 months ago

1.2.2

2 months ago

1.2.1

2 months ago

1.2.9

2 months ago

1.0.305

3 months ago

1.0.304

3 months ago

1.0.301

3 months ago

1.0.300

3 months ago

1.0.303

3 months ago

1.0.302

3 months ago

1.0.200

5 months ago

1.0.206

5 months ago

1.0.205

5 months ago

1.0.208

4 months ago

1.0.207

5 months ago

1.0.202

5 months ago

1.0.201

5 months ago

1.0.204

5 months ago

1.0.203

5 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

4 months ago

1.0.262

3 months ago

1.0.261

3 months ago

1.0.268

3 months ago

1.0.147

6 months ago

1.0.267

3 months ago

1.0.146

6 months ago

1.0.149

6 months ago

1.0.269

3 months ago

1.0.148

6 months ago

1.0.253

4 months ago

1.0.252

4 months ago

1.0.255

4 months ago

1.0.254

4 months ago

1.0.251

4 months ago

1.0.250

4 months ago

1.0.257

4 months ago

1.0.256

4 months ago

1.0.259

4 months ago

1.0.258

4 months ago

1.0.286

3 months ago

1.0.165

6 months ago

1.0.285

3 months ago

1.0.164

6 months ago

1.0.288

3 months ago

1.0.167

6 months ago

1.0.287

3 months ago

1.0.166

6 months ago

1.0.282

3 months ago

1.0.161

6 months ago

1.0.281

3 months ago

1.0.160

6 months ago

1.0.284

3 months ago

1.0.163

6 months ago

1.0.283

3 months ago

1.0.162

6 months ago

1.0.169

6 months ago

1.0.289

3 months ago

1.0.168

6 months ago

1.0.280

3 months ago

1.0.275

3 months ago

1.0.154

6 months ago

1.0.274

3 months ago

1.0.153

6 months ago

1.0.277

3 months ago

1.0.156

6 months ago

1.0.276

3 months ago

1.0.155

6 months ago

1.0.271

3 months ago

1.0.150

6 months ago

1.0.270

3 months ago

1.0.273

3 months ago

1.0.152

6 months ago

1.0.272

3 months ago

1.0.151

6 months ago

1.0.279

3 months ago

1.0.158

6 months ago

1.0.278

3 months ago

1.0.157

6 months ago

1.0.159

6 months ago

1.0.220

4 months ago

1.0.222

4 months ago

1.0.221

4 months ago

1.0.228

4 months ago

1.0.227

4 months ago

1.0.229

4 months ago

1.0.224

4 months ago

1.0.223

4 months ago

1.0.226

4 months ago

1.0.225

4 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

4 months ago

1.0.241

4 months ago

1.0.244

4 months ago

1.0.243

4 months ago

1.0.240

4 months ago

1.0.249

4 months ago

1.0.246

4 months ago

1.0.245

4 months ago

1.0.248

4 months ago

1.0.247

4 months ago

1.0.231

4 months ago

1.0.230

4 months ago

1.0.233

4 months ago

1.0.232

4 months ago

1.0.239

4 months ago

1.0.238

4 months ago

1.0.235

4 months ago

1.0.234

4 months ago

1.0.237

4 months ago

1.0.236

4 months ago

1.0.187

5 months ago

1.0.186

5 months ago

1.0.189

5 months ago

1.0.188

5 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

3 months ago

1.0.176

5 months ago

1.0.296

3 months ago

1.0.175

5 months ago

1.0.299

3 months ago

1.0.178

5 months ago

1.0.298

3 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

5 months ago

1.0.197

5 months ago

1.0.199

5 months ago

1.0.194

5 months ago

1.0.193

5 months ago

1.0.196

5 months ago

1.0.195

5 months ago

1.0.190

5 months ago

1.0.192

5 months ago

1.0.191

5 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

7 months ago

1.0.132

7 months ago

1.0.131

7 months ago

1.0.130

7 months ago

1.0.129

7 months ago

1.0.128

7 months ago

1.0.127

7 months ago

1.0.123

7 months ago

1.0.122

7 months ago

1.0.125

7 months ago

1.0.124

7 months ago

1.0.126

7 months ago

1.0.121

7 months ago

1.0.120

7 months ago

1.0.119

7 months ago

1.0.118

7 months ago

1.0.117

7 months ago

1.0.116

7 months ago

1.0.115

7 months ago

1.0.114

7 months ago

1.0.113

7 months ago

1.0.112

7 months ago

1.0.110

7 months ago

1.0.111

7 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

8 months ago

1.0.93

8 months ago

1.0.91

8 months ago

1.0.90

8 months ago

1.0.92

8 months ago

1.0.89

8 months ago

1.0.88

8 months ago

1.0.87

8 months ago

1.0.86

8 months ago

1.0.85

8 months ago

1.0.84

8 months ago

1.0.83

8 months ago

1.0.82

8 months ago

1.0.80

8 months ago

1.0.81

8 months ago

1.0.79

8 months ago

1.0.77

8 months ago

1.0.78

8 months ago

1.0.76

8 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

9 months ago

1.0.56

9 months ago

1.0.55

9 months ago

1.0.54

9 months ago

1.0.53

9 months ago

1.0.49

9 months ago

1.0.51

9 months ago

1.0.50

9 months ago

1.0.52

9 months ago

1.0.48

9 months ago

1.0.47

9 months ago

1.0.44

9 months ago

1.0.46

9 months ago

1.0.45

9 months ago

1.0.39

9 months ago

1.0.38

9 months ago

1.0.40

9 months ago

1.0.43

9 months ago

1.0.42

9 months ago

1.0.41

9 months ago

1.0.37

9 months ago

1.0.36

9 months ago

1.0.35

9 months ago

1.0.34

9 months ago

1.0.33

9 months ago

1.0.29

9 months ago

1.0.28

9 months ago

1.0.32

9 months ago

1.0.31

9 months ago

1.0.30

9 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.26

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.27

9 months ago

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

9 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