指定矩形的边框颜色为红色,画虚线 使用画刷填充 指定画布的背景色为白色 使用属性 stipple 代码: import tkinter as tk root = tk.Tk() # 创建一个 Canvas (root, bg='white') # 创建一个矩形,坐标为(10,10,110,110) cv.create_rectangle(10, 10, 110, 110, outline='red', stipple , bg='white') # 创建一个矩形,坐标为(10,10,110,110) rt = cv.create_rectangle(10, 10, 110, 110, outline='red', stipple
colorbar_orientation='horizontal') cfp.gclose() Multiple plots on a page and plot positioning Stipple cf.read('cfplot_data/tas_A1.nc')[0] g=f.subspace(time=15) cfp.gopen() cfp.cscale('magma') cfp.con(g) cfp.stipple (f=g, min=220, max=260, size=100, color='#00ff00') cfp.stipple(f=g, min=300, max=330, size=50, color=
Delaunay::Edge_iterator eit; //遍历Delaunay的所有边,绘制Delaunay图的对偶图,即Voronoi图 glEnable( GL_LINE_STIPPLE >(&o)->point(1).hy() ); glEnd(); } } glDisable( GL_LINE_STIPPLE
smooth 选项为 True 时该选项才会生效state指定该画布对象的状态,默认值为 "normal",参数值有 "normal","disabled"(不可用)和 "hidden"(隐藏)三种状态stipple
gl.LineWidth(1f); //允许绘制虚线 gl.Enable(OpenGL.GL_LINE_STIPPLE
glut.h> #include<glaux.h> void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); glEnable(GL_LINE_STIPPLE 镂空多边形 使用glEnable(GL_POLYGON_STIPPLE);来启动镂空模式(使用glDisable(GL_POLYGON_STIPPLE)可以关闭之)。 , sizeof(Mask), 1, fp)) exit(0); fclose(fp); glClear(GL_COLOR_BUFFER_BIT); glEnable(GL_POLYGON_STIPPLE