Вот код
Код: Выделить всё
import numpy as np
import py5
def setup():
py5.size(400, 400, py5.P2D)
py5.smooth(4)
py5.stroke("red")
py5.stroke_weight(2)
py5.rect(50, 50, py5.width - 100, py5.height - 100)
def draw():
rand_x = py5.width * np.random.rand()
rand_y = py5.height * np.random.rand()
py5.circle(rand_x, rand_y, 20)
py5.run_sketch()
Код: Выделить всё
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8c5e0648f, pid=19996, tid=0x0000000000001194
#
# JRE version: Java(TM) SE Runtime Environment (8.0_431) (build 1.8.0_431-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.431-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8c5e0648f, pid=19996, tid=0x0000000000001194
#
# JRE version: Java(TM) SE Runtime Environment (8.0_431) (build 1.8.0_431-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.431-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
#
# JRE version: Java(TM) SE Runtime Environment (8.0_431) (build 1.8.0_431-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.431-b10 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# Problematic frame:
# C [python313.dll+0x1c648f]
# C [python313.dll+0x1c648f]
#
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\Mathematical Artwork\hs_err_pid19996.log
#
# D:\Mathematical Artwork\hs_err_pid19996.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Подробнее здесь: https://stackoverflow.com/questions/793 ... unning-py5
Мобильная версия