Skip to main content

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, and IPython. 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. (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

eline.vangeert@kuleuven.be

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octa-1.0.0.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

octa-1.0.0-py3-none-any.whl (87.4 kB view details)

Uploaded Python 3

File details

Details for the file octa-1.0.0.tar.gz.

File metadata

  • Download URL: octa-1.0.0.tar.gz
  • Upload date:
  • Size: 57.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for octa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1a7daf3c27e219291f709e1415a7de3f783145fc4c01d6d669038612dc2b8579
MD5 554a84612cdbe3659b50344e792c4f47
BLAKE2b-256 5303ee1bfcc2fe82b49f4e01a1bbe86cf19cbec1ba488f9397038f03b31a7b12

See more details on using hashes here.

File details

Details for the file octa-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: octa-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 87.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for octa-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68c0ddc42438cf515d5a404c68606f0a56a57a108789a6638c2a7035fd01fc70
MD5 405ea2c5c7044399deb4165be75cc14b
BLAKE2b-256 9d2218e6688ea84308310195089ae6d878a3893d626dc04959d4a0f4e07d95b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page