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/hering.c translated into Python """ import math import cairo WIDTH = 300 HEIGHT = 600 def draw_hering (ctx, width, height): LINES= 32 MAX_THETA = .80 * math.pi * 2 THETA_INC = 2.0 * MAX_THETA / (LINES-1) ctx.set_source_rgb (0, 0, 0) ctx.set_line_width (2.0) ctx.save() ctx.translate (width / 2, height / 2) ctx.rotate (MAX_THETA) for i in range (LINES): ctx.move_to (-2 * width, 0) ctx.line_to (2 * width, 0) ctx.stroke() ctx.rotate (- THETA_INC) ctx.restore() ctx.set_line_width (6) ctx.set_source_rgb (1, 0, 0) ctx.move_to (width / 4.0, 0) ctx.rel_line_to (0, height) ctx.stroke() ctx.move_to (3 * width / 4.0, 0) ctx.rel_line_to (0, height) 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_hering (ctx, WIDTH, HEIGHT) surface.write_to_png('hering.png')