我是一个openFrameworks新手.我正在学习基本的2D绘图,到目前为止一切都很棒.我画了一个圆圈使用:
ofSetColor(0x333333);
ofFill;
ofCircle(100,650,50);
Run Code Online (Sandbox Code Playgroud)
我的问题是如何给圆圈一个变量名,以便我可以用鼠标按下的方法操作?我试着在ofCircle之前添加一个名字
theball.ofSetColor(0x333333);
theball.ofFill;
theball.ofCircle(100,650,50);
Run Code Online (Sandbox Code Playgroud)
但得到我'theball'没有在此范围错误中声明.