1.2.70 • Published 5 months ago

scratch-render v1.2.70

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

1.2.70

5 months ago

1.2.60

5 months ago

1.2.63

5 months ago

1.2.64

5 months ago

1.2.61

5 months ago

1.2.62

5 months ago

1.2.67

5 months ago

1.2.68

5 months ago

1.2.65

5 months ago

1.2.66

5 months ago

1.2.56

5 months ago

1.2.57

5 months ago

1.2.54

5 months ago

1.2.55

5 months ago

1.2.58

5 months ago

1.2.59

5 months ago

1.2.52

5 months ago

1.2.53

5 months ago

1.1.52

6 months ago

1.1.51

6 months ago

1.1.50

6 months ago

1.1.53

6 months ago

1.1.29

7 months ago

1.1.28

7 months ago

1.1.30

7 months ago

1.1.34

7 months ago

1.1.33

7 months ago

1.1.32

7 months ago

1.1.31

7 months ago

1.1.38

7 months ago

1.1.37

7 months ago

1.1.36

7 months ago

1.1.35

7 months ago

1.1.39

7 months ago

1.1.41

7 months ago

1.1.40

7 months ago

1.1.45

6 months ago

1.1.44

6 months ago

1.1.43

6 months ago

1.1.42

6 months ago

1.1.49

6 months ago

1.1.48

6 months ago

1.1.47

6 months ago

1.1.46

6 months ago

1.1.12

7 months ago

1.1.11

7 months ago

1.1.10

7 months ago

1.1.16

7 months ago

1.1.15

7 months ago

1.1.14

7 months ago

1.1.13

7 months ago

1.1.19

7 months ago

1.1.18

7 months ago

1.1.17

7 months ago

1.1.23

7 months ago

1.1.22

7 months ago

1.1.21

7 months ago

1.1.20

7 months ago

1.1.27

7 months ago

1.1.26

7 months ago

1.1.25

7 months ago

1.1.24

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.1.9

7 months ago

1.1.8

7 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.0.307

7 months ago

1.0.306

7 months ago

1.0.321

7 months ago

1.0.320

7 months ago

1.0.327

7 months ago

1.0.326

7 months ago

1.0.329

7 months ago

1.0.328

7 months ago

1.0.323

7 months ago

1.0.322

7 months ago

1.0.325

7 months ago

1.0.324

7 months ago

1.0.319

7 months ago

1.0.310

7 months ago

1.0.316

7 months ago

1.0.315

7 months ago

1.0.318

7 months ago

1.0.317

7 months ago

1.0.312

7 months ago

1.0.311

7 months ago

1.0.314

7 months ago

1.0.313

7 months ago

1.0.309

7 months ago

1.0.308

7 months ago

1.2.41

6 months ago

1.2.42

6 months ago

1.2.40

6 months ago

1.2.45

6 months ago

1.2.46

6 months ago

1.2.43

6 months ago

1.2.44

6 months ago

1.2.49

6 months ago

1.2.47

6 months ago

1.2.48

6 months ago

1.2.50

6 months ago

1.2.51

6 months ago

1.2.18

6 months ago

1.2.19

6 months ago

1.2.20

6 months ago

1.2.23

6 months ago

1.2.24

6 months ago

1.2.21

6 months ago

1.2.22

6 months ago

1.2.27

6 months ago

1.2.28

6 months ago

1.2.25

6 months ago

1.2.26

6 months ago

1.2.29

6 months ago

1.2.30

6 months ago

1.2.31

6 months ago

1.2.34

6 months ago

1.2.35

6 months ago

1.2.32

6 months ago

1.2.33

6 months ago

1.2.38

6 months ago

1.2.39

6 months ago

1.2.36

6 months ago

1.2.37

6 months ago

1.2.12

6 months ago

1.2.13

6 months ago

1.2.10

6 months ago

1.2.11

6 months ago

1.2.16

6 months ago

1.2.17

6 months ago

1.2.14

6 months ago

1.2.15

6 months ago

1.0.330

7 months ago

1.0.332

7 months ago

1.0.331

7 months ago

1.0.334

7 months ago

1.0.333

7 months ago

1.0.336

7 months ago

1.0.335

7 months ago

1.2.0

6 months ago

1.2.8

6 months ago

1.2.7

6 months ago

1.2.6

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.9

6 months ago

1.0.305

7 months ago

1.0.304

7 months ago

1.0.301

7 months ago

1.0.300

7 months ago

1.0.303

7 months ago

1.0.302

7 months ago

1.0.200

9 months ago

1.0.206

9 months ago

1.0.205

9 months ago

1.0.208

9 months ago

1.0.207

9 months ago

1.0.202

9 months ago

1.0.201

9 months ago

1.0.204

9 months ago

1.0.203

9 months ago

1.0.264

8 months ago

1.0.143

11 months ago

1.0.263

8 months ago

1.0.142

11 months ago

1.0.266

8 months ago

1.0.145

10 months ago

1.0.265

8 months ago

1.0.144

11 months ago

1.0.260

8 months ago

1.0.262

8 months ago

1.0.261

8 months ago

1.0.268

8 months ago

1.0.147

10 months ago

1.0.267

8 months ago

1.0.146

10 months ago

1.0.149

10 months ago

1.0.269

8 months ago

1.0.148

10 months ago

1.0.253

8 months ago

1.0.252

8 months ago

1.0.255

8 months ago

1.0.254

8 months ago

1.0.251

8 months ago

1.0.250

8 months ago

1.0.257

8 months ago

1.0.256

8 months ago

1.0.259

8 months ago

1.0.258

8 months ago

1.0.286

8 months ago

1.0.165

10 months ago

1.0.285

8 months ago

1.0.164

10 months ago

1.0.288

8 months ago

1.0.167

10 months ago

1.0.287

8 months ago

1.0.166

10 months ago

1.0.282

8 months ago

1.0.161

10 months ago

1.0.281

8 months ago

1.0.160

10 months ago

1.0.284

8 months ago

1.0.163

10 months ago

1.0.283

8 months ago

1.0.162

10 months ago

1.0.169

10 months ago

1.0.289

8 months ago

1.0.168

10 months ago

1.0.280

8 months ago

1.0.275

8 months ago

1.0.154

10 months ago

1.0.274

8 months ago

1.0.153

10 months ago

1.0.277

8 months ago

1.0.156

10 months ago

1.0.276

8 months ago

1.0.155

10 months ago

1.0.271

8 months ago

1.0.150

10 months ago

1.0.270

8 months ago

1.0.273

8 months ago

1.0.152

10 months ago

1.0.272

8 months ago

1.0.151

10 months ago

1.0.279

8 months ago

1.0.158

10 months ago

1.0.278

8 months ago

1.0.157

10 months ago

1.0.159

10 months ago

1.0.220

9 months ago

1.0.222

9 months ago

1.0.221

9 months ago

1.0.228

8 months ago

1.0.227

8 months ago

1.0.229

8 months ago

1.0.224

8 months ago

1.0.223

9 months ago

1.0.226

8 months ago

1.0.225

8 months ago

1.0.211

9 months ago

1.0.210

9 months ago

1.0.217

9 months ago

1.0.216

9 months ago

1.0.219

9 months ago

1.0.218

9 months ago

1.0.213

9 months ago

1.0.212

9 months ago

1.0.215

9 months ago

1.0.214

9 months ago

1.0.209

9 months ago

1.0.242

8 months ago

1.0.241

8 months ago

1.0.244

8 months ago

1.0.243

8 months ago

1.0.240

8 months ago

1.0.249

8 months ago

1.0.246

8 months ago

1.0.245

8 months ago

1.0.248

8 months ago

1.0.247

8 months ago

1.0.231

8 months ago

1.0.230

8 months ago

1.0.233

8 months ago

1.0.232

8 months ago

1.0.239

8 months ago

1.0.238

8 months ago

1.0.235

8 months ago

1.0.234

8 months ago

1.0.237

8 months ago

1.0.236

8 months ago

1.0.187

9 months ago

1.0.186

10 months ago

1.0.189

9 months ago

1.0.188

9 months ago

1.0.183

10 months ago

1.0.182

10 months ago

1.0.185

10 months ago

1.0.184

10 months ago

1.0.181

10 months ago

1.0.180

10 months ago

1.0.297

7 months ago

1.0.176

10 months ago

1.0.296

7 months ago

1.0.175

10 months ago

1.0.299

7 months ago

1.0.178

10 months ago

1.0.298

7 months ago

1.0.177

10 months ago

1.0.293

8 months ago

1.0.172

10 months ago

1.0.292

8 months ago

1.0.171

10 months ago

1.0.295

7 months ago

1.0.174

10 months ago

1.0.294

7 months ago

1.0.173

10 months ago

1.0.179

10 months ago

1.0.291

8 months ago

1.0.170

10 months ago

1.0.290

8 months ago

1.0.198

9 months ago

1.0.197

9 months ago

1.0.199

9 months ago

1.0.194

9 months ago

1.0.193

9 months ago

1.0.196

9 months ago

1.0.195

9 months ago

1.0.190

9 months ago

1.0.192

9 months ago

1.0.191

9 months ago

1.0.141

11 months ago

1.0.140

11 months ago

1.0.139

11 months ago

1.0.138

11 months ago

1.0.137

11 months ago

1.0.136

11 months ago

1.0.134

11 months ago

1.0.135

11 months ago

1.0.133

11 months ago

1.0.132

11 months ago

1.0.131

11 months ago

1.0.130

11 months ago

1.0.129

11 months ago

1.0.128

11 months ago

1.0.127

11 months ago

1.0.123

11 months ago

1.0.122

11 months ago

1.0.125

11 months ago

1.0.124

11 months ago

1.0.126

11 months ago

1.0.121

11 months ago

1.0.120

11 months ago

1.0.119

11 months ago

1.0.118

11 months ago

1.0.117

11 months ago

1.0.116

11 months ago

1.0.115

11 months ago

1.0.114

11 months ago

1.0.113

11 months ago

1.0.112

11 months ago

1.0.110

11 months ago

1.0.111

11 months ago

1.0.109

12 months ago

1.0.107

12 months ago

1.0.108

12 months ago

1.0.106

12 months ago

1.0.105

12 months ago

1.0.104

12 months ago

1.0.103

12 months ago

1.0.102

12 months ago

1.0.101

12 months ago

1.0.99

12 months ago

1.0.100

12 months ago

1.0.98

12 months ago

1.0.97

12 months ago

1.0.96

12 months ago

1.0.95

12 months ago

1.0.94

12 months ago

1.0.93

12 months ago

1.0.91

12 months ago

1.0.90

12 months ago

1.0.92

12 months ago

1.0.89

12 months ago

1.0.88

12 months ago

1.0.87

12 months ago

1.0.86

1 year ago

1.0.85

1 year ago

1.0.84

1 year ago

1.0.83

1 year ago

1.0.82

1 year ago

1.0.80

1 year ago

1.0.81

1 year ago

1.0.79

1 year ago

1.0.77

1 year ago

1.0.78

1 year ago

1.0.76

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.71

1 year ago

1.0.70

1 year ago

1.0.69

1 year ago

1.0.68

1 year ago

1.0.67

1 year ago

1.0.66

1 year ago

1.0.65

1 year ago

1.0.64

1 year ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.63

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.52

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.44

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.40

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.27

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-hotfix.1

1 year ago

0.1.0

9 years ago

0.1.0-1474949857

9 years ago

0.1.0-9f26a

9 years ago

0.1.0-dd60a

9 years ago

0.1.0-e6d1d

9 years ago

0.1.0-223e3

9 years ago

0.1.0-f1b92

9 years ago

0.1.0-13e23

9 years ago

0.1.0-cf57e

9 years ago

0.1.0-d28e5

9 years ago

0.1.0-78e63

9 years ago

0.1.0-020b6

9 years ago

0.0.1-48e62

9 years ago

0.0.1-54395

9 years ago

0.0.0-alpha.0

9 years ago