Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.140.254.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
pycairo-1.8.10 /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
cairo_snippets
[ DIR ]
drwxr-xr-x
2022-01-26 17:33
gtk
[ DIR ]
drwxr-xr-x
2022-01-26 17:33
Makefile
11.61
KB
-rw-r--r--
2014-06-10 06:21
Makefile.am
1.34
KB
-rw-r--r--
2007-01-13 11:20
Makefile.in
10.83
KB
-rw-r--r--
2010-05-20 11:43
gradient.py
769
B
-rwxr-xr-x
2009-08-06 12:47
hering.py
1.04
KB
-rwxr-xr-x
2009-08-06 12:47
spiral.py
782
B
-rwxr-xr-x
2009-08-06 12:47
warpedtext.py
1.98
KB
-rwxr-xr-x
2009-08-06 12:47
Save
Rename
#!/usr/bin/env python """cairo/cairo-demo/png/spiral.c translated into Python """ import cairo WIDTH, HEIGHT = 600, 600 def draw_spiral (ctx, width, height): wd = .02 * width hd = .02 * height width -= 2 height -= 2 ctx.move_to (width + 1, 1-hd) for i in range(9): ctx.rel_line_to (0, height - hd * (2 * i - 1)) ctx.rel_line_to (- (width - wd * (2 *i)), 0) ctx.rel_line_to (0, - (height - hd * (2*i))) ctx.rel_line_to (width - wd * (2 * i + 1), 0) ctx.set_source_rgb (0, 0, 1) ctx.stroke() surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, WIDTH, HEIGHT) ctx = cairo.Context(surface) ctx.set_source_rgb (1, 1, 1) ctx.set_operator (cairo.OPERATOR_SOURCE) ctx.paint() draw_spiral (ctx, WIDTH, HEIGHT) surface.write_to_png('spiral.png')