Questions tagged [rapydscript]

Questions relating to RapydScript language. RapydScript is a Python-inspired, decluttered version of JavaScript with optional static typing and enhanced error-checking (similar to TypeScript).

Questions relating to RapydScript language (https://github.com/atsepkov/RapydScript). RapydScript is a Python-inspired, decluttered version of JavaScript with optional static typing and enhanced error-checking (similar to TypeScript).

3 questions
74
votes
13 answers

How can I integrate Python and JavaScript?

Is it possible to integrate Python and JavaScript? For example, imagine you wanted to be able to define classes in JavaScript and use them from Python (or vice versa). If so, what's the best way? I'm interested not only if this is possible but if…
Jacob Gabrielson
  • 34,800
  • 15
  • 46
  • 64
2
votes
1 answer

Simple image rotation with Python and DOM using RapydScript

I have this code write in Python and works fine with Brython. This code rotate image in this case a cog. How Can I change it, and what change to work with RapydScript? I am new at programming so please have patience :D
Monica
  • 111
  • 11
1
vote
2 answers

Turtle and drawing tree with RapydScript

today I want draw a tree in browser with RapydScript. I have code in Python: import random import turtle def tree(size, myTurtle): myTurtle.pensize(size / 20) if size < random.randint(1,2) * 20: myTurtle.color("green") else: …
Monica
  • 111
  • 11