NameError for many p5 functions
Trying to follow the documentation of p5 shows that many of the functions raise errors in basthon (notebook and console). For example in the following script (errors in comments):
import p5
from p5 import *
def setup():
createCanvas(200, 200)
size(640, 360) # NameError: name 'size' is not defined
def draw():
background(200)
ellipse(100, 100, 20,20)
title("Title") # NameError
p5.title("Title") # AttributeError: title
print(frame_count) # NameError
run()
Same thing when copy pasting official examples from the p5 doc, such as https://p5.readthedocs.io/en/latest/examples/color/brightness.html
The problem of course is that as it is, telling students to read the p5 doc will lead to errors (the very first page of the p5 reference includes no_loop and p5.exit() which do not work in basthon).
If only a subset of p5 features are supported, could this be mentioned in the basthon doc in the p5 section?