A tool for researchers to create stimuli varying in order and complexity on different dimensions
Project description
OCTA toolbox
The OCTA Python toolbox was created by Van Geert, Bossens, and Wagemans (2021) as a tool for researchers to create stimuli varying in order and complexity on different dimensions. It was created in Python 3.8 and is dependent on the following Python libraries: svgwrite, svg.path, svgpathtools, svgutils, jsonpickle, html2image, svglib, reportlab, colour, IPython, and pandas. We thank the developers of each of these libraries and of the Python programming language.
A simple example:
from octa.Stimulus import Grid
from octa.patterns import GridPattern
from octa.shapes import Ellipse, Rectangle, Triangle
## Create new stimulus
stim = Grid(n_rows = 6, n_cols = 6, background_color = "none",
row_spacing = 40, col_spacing = 40)
## Determine shape of elements used in the stimulus
stim.shapes = GridPattern.RepeatAcrossColumns([Rectangle, Triangle, Ellipse])
## Determine color of elements used in the stimulus
colors_to_use = ["#1b9fd8", "#6dd6ff", "#006ca1"]
stim.fillcolors = GridPattern.RepeatAcrossColumns(colors_to_use)
## Determine size of elements used in the stimulus
stim.boundingboxes = GridPattern.RepeatAcrossColumns([(30,30)])
stim.Show()
OCTA Shiny app
A graphical user interface for OCTA is available in the form of a Shiny app.
Citing OCTA
If you use the OCTA Python toolbox in your (academic) work, please cite:
- Van Geert, E., Bossens, C., & Wagemans, J. (2023). The Order & Complexity Toolbox for Aesthetics (OCTA): A systematic approach to study the relations between order, complexity, and aesthetic appreciation. Behavior Research Methods, 55, 2423–2446. https://doi.org/10.3758/s13428-022-01900-w
- Van Geert, E., Bossens, C., & Wagemans, J. (2021). The Order & Complexity Toolbox for Aesthetics Python library [Computer software]. https://github.com/gestaltrevision/OCTA_toolbox
If you use the OCTA Shiny app in your (academic) work, please cite: Van Geert, E., Bossens, C., & Wagemans, J. (2021). The Order & Complexity Toolbox for Aesthetics Shiny application [Online application]. https://elinevg.shinyapps.io/OCTA_toolbox/
Documentation
Find the documentation here
License
The OCTA Python toolbox is licensed under the terms of the GNU Lesser General Public License 3.0.
Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file octa-1.0.1.tar.gz
.
File metadata
- Download URL: octa-1.0.1.tar.gz
- Upload date:
- Size: 57.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75216c18c30b4998321d752bb805f470d5dfcaca3d1bb1039775976c5d8d32ca |
|
MD5 | fb48b80efd1aac3a0edbd7bf72a1bbfd |
|
BLAKE2b-256 | e523dfd6dc57fb24a5bfd7225f20c7814799ba5ee05ad968701b8693c82a3fc0 |
File details
Details for the file octa-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: octa-1.0.1-py3-none-any.whl
- Upload date:
- Size: 86.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd7d42e27872b79ce90e9f496d69db54fca23f103de309df16b9a5a91db1d37 |
|
MD5 | 40ab84bc90c30c680be265c5902064c8 |
|
BLAKE2b-256 | b20c7babad3572d62f3d80aa607d9fe23ab98890677b21970245c2b25da1898d |