https://github.com/h-ohsaki/cellx
NAME
cellx - command-driven drawing/visualization/animation/presentation tool
SCREENSHOTS
- DTN simulator visualization
- DTN simulator visualization with blurring
- CCN simulator visualization with blurring
- CCN simulator visualization with blurring and blue-yellow (#3) color map
- DFC-BP+ visualization
- DFC-BP+ visualization
- WSN simulator visualization
- Circuit-switching illustration (converted from PostScript)
- M/M/1 queue illustration (converted from PostScript)
DESCRIPTION
This manual page documents cellx, a one-pass interpreter of the CELL language. CELL language is a simple line-oriented language for dynamic graphics drawing. cellx reads a source code written in the CELL language from the standard input or specified files. Every line in the source code is parsed and interpreted. The output is drawn on a window using SDL library via pygame module or sent to the standard output in the PostScript format.
CELL LANGUAGE COMMANDS
alpha (name|regexp) alpha
animate name (goal_x goal_y|name[(+|-)dx(+|-)dy])
attach name parent_name dx dy
color (name|regexp) color
define name bitmap file [(x y|name[(+|-)dx(+|-)dy])]
define name box [-f color] [width height color (x y|name[(+|-)dx(+|-)dy])]
define name ellipse [-f color] [rx ry color] [(x y|name[(+|-)dx(+|-)dy])]
define name line [-ht] sx sy dx dy [width color]
define name link src_name dst_name [width color]
define name polygon [-f color] [-r degree] n r [color (x y|name[(+|-)dx(+|-)dy])]
define name spline x1 y1 x2 y2 x3 y3 [width color]
define name text [-lcr] string [size color (x y|name[(+|-)dx(+|-)dy])]
define name wire [-ht] sx sy dx dy [width color]
display
fade (name|regexp)...
fix (name|regexp)...
hide (name|regexp)...
kill (name|regexp)...
move (name|regexp) (x y|name[(+|-)dx(+|-)dy])
palette symbol (r g b [alpha]|name [alpha])
play file
priority (name|regexp) level
resize (name|regexp) (x y|name[(+|-)dx(+|-)dy])
scale (name|regexp) ratio
shift (name|regexp) dx dy
sleep x
spring [-f filter] [-r degree] (name|regexp)... [x1 y1 x2 y2]
unhide (name|regexp)...
wait
EXAMPLES
Many examples are found in ex directory contained in the source archive.
- M/M/1 queue:
#define font_size 20
#define packet_color gray80
#define add_note_above(name, str) \
define name##_note text str font_size white name+0-40
#define add_note_below(name, str) \
define name##_note text str font_size white name+0+40
#define create_slot(name) \
define name box -f black 10 50 white
#define create_slot_at(name, pos) \
create_slot(name) pos
#define create_customer(name) \
define name box -f black 10 50 packet_color
#define create_customer_at(name, pos) \
create_customer(name) pos
define server ellipse -f black 30 30 white
add_note_below(server, server)
move server_note server+.02+.08
create_slot_at(b1, server-35+0)
create_slot_at(b2, b1-10+0)
create_slot_at(b3, b2-10+0)
create_slot_at(b4, b3-10+0)
create_slot_at(b5, b4-10+0)
add_note_below(b5, buffer)
move b5_note b5+0+.08
define lb line -h .25 .5 b5-10+0 undef 2 black
define la line -h server+30+0 undef .65 .5 2 black
create_customer_at(c1, .33 .44)
create_customer_at(c2, .36 .44)
create_customer_at(c3, .56 .44)
create_customer_at(c4, .62 .44)
add_note_above(c1, customer)
display
wait
INSTALLATION
pip3 install cellx
AVAILABILITY
The latest version of cellx is available at PyPI (https://pypi.org/project/cellx/) .
SEE ALSO
cell - CELL language interpreter for visualization using SDL/OpenGL/PostScript/AVI/PDF (http://www.lsnl.jp/~ohsaki/software/cell)
AUTHOR
Hiroyuki Ohsaki <ohsaki[atmark]lsnl.jp>
Metadata
Release files for cellx 1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cellx-1.14.tar.gz | 29.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cellx-1.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 80.0 kB
Release files / cellx-1.14.tar.gz
| Download URL | cellx-1.14.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b43e4c18f3ccebe14204beacc6db57577523af2e119c0baf0262c30d9fba610b
|
|
BLAKE2b-256 checksum How to use checksums |
a55282a874d75e51708e9eaf85dc74918815ef2aca63a0751fd6aeec07790067
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Release files / cellx-1.14-py3-none-any.whl
| Download URL | cellx-1.14-py3-none-any.whl |
|---|---|
| Size | 51.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59a6692f531b43ded2ac6cd281710b3373850114aa26cdc7958e98d989e53352
|
|
BLAKE2b-256 checksum How to use checksums |
e978164fde0b7965e56db4e756e41a0100c78e55e3663089f492c58bf5350940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Security for cellx 1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.