Skip to content

Commit 1e2fa84

Browse files
committed
add fx2d to drawing magics
1 parent 008c21a commit 1e2fa84

File tree

1 file changed

+2
-2
lines changed
  • py5_resources/py5_module/py5_tools/magics

1 file changed

+2
-2
lines changed

py5_resources/py5_module/py5_tools/magics/drawing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def py5draw(self, line, cell):
295295
args = parse_argstring(self.py5draw, line)
296296

297297
if sys.platform == "darwin":
298-
if args.renderer in ["P2D", "P3D", "DXF"]:
298+
if args.renderer in ["P2D", "P3D", "FX2D", "DXF"]:
299299
print(
300300
f"Sorry, py5 magics do not support the {args.renderer} renderer on macOS.",
301301
file=sys.stderr,
@@ -312,7 +312,7 @@ def py5draw(self, line, cell):
312312
if args.renderer == "PDF":
313313
print("please use %%py5drawpdf for PDFs.", file=sys.stderr)
314314
return
315-
if args.renderer not in ["HIDDEN", "JAVA2D", "P2D", "P3D"]:
315+
if args.renderer not in ["HIDDEN", "JAVA2D", "P2D", "P3D", "FX2D"]:
316316
print(f"unknown renderer {args.renderer}", file=sys.stderr)
317317
return
318318

0 commit comments

Comments
 (0)