Skip to content

Commit

Permalink
Update documents
Browse files Browse the repository at this point in the history
  • Loading branch information
kurokida committed Apr 6, 2022
1 parent 5f17c49 commit 868a0dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions docs/_pages/pixijs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ permalink: /pixijs/
title: "Psychophysics plugin with PixiJS"
---

Starting with version 3.2.0, the psychophysics plugin can present visual stimuli using [PixiJS](https://pixijs.com/) functionality. Pixi mode should be turned on when presenting gabor patches. Note that anti-aliasing does not work in pixi mode.
Starting with version 3.2.0, the psychophysics plugin can present visual stimuli using [PixiJS](https://pixijs.com/) functionality. You can turn on and off Pixi mode, but if you present drifting gabor patches Pixi mode should be turned on.

# How to turn on pixi mode
# How to turn on Pixi mode

## Upload to a web server
## Upload files to a web server

Basically, to use PixiJS, the program must be uploaded to a web server. However, some programs, such as those that do not include image files, will work on a local PC.
To use PixiJS, in priciple, the program files must be uploaded to a web server. However, some programs will work on a local PC (e.g., a prgoram presenting rectangles and circles.)

## Include PixiJS using a script tag

Expand All @@ -19,7 +19,7 @@ Basically, to use PixiJS, the program must be uploaded to a web server. However,

## Set the pixi property as true

The pixi property is false by default, i.e., pixi mode is off.
The pixi property is false by default, i.e., Pixi mode is off.

```javascript

Expand All @@ -31,20 +31,20 @@ const trial = {

```

# How to check if the program is working in pixi mode
# How to check if the program is working in Pixi mode

Please open the JavaScript console window in your browser. If you are using Chrome on Windows, press Ctrl + Shift + I to open the console. You'll see the following line in the console if the program runs in pixi mode.
Please open the JavaScript console window in your browser. If you are using Chrome on Windows, press Ctrl + Shift + I to open the console. You'll see the following line in the console if the program runs in Pixi mode.

![pixi_mode](/images/pixi_mode.png)


# Known problems in pixi mode
# Known problems in Pixi mode

- There may be a way to enable anti-aliasing, but I have yet to find it. You can clearly see the difference between anti-aliasing [on](https://www.hes.kyushu-u.ac.jp/~kurokid/PixiJS_test/psychophysics-demos/dynamically_change.html?pixi_flag=0) and [off].
- You may feel a flash of screen immediately after the trial when the background color is not white. In this case, you can avoid the problem by writing as `<body bgcolor="gray"></body>`.
- The quality of text seems to be better in non pixi mode. https://www.hes.kyushu-u.ac.jp/~kurokid/PixiJS_test/psychophysics-demos/mask_filter_with_label.html?pixi_flag=0
- The quality of text seems to be better in non Pixi mode. https://www.hes.kyushu-u.ac.jp/~kurokid/PixiJS_test/psychophysics-demos/mask_filter_with_label.html?pixi_flag=0

So, please switch between pixi modes depending on the purpose of the experiment.
So, please switch between Pixi modes depending on the purpose of the experiment.

|obj_type|attributes|
|---|---|
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ toc_icon: "bicycle"
toc_sticky: true
---

The jspsych-psychophysics plugin is developed for the purpose of conducting online/Web-based psychophysical experiments using [jsPsych](http://www.jspsych.org/) (de Leeuw, 2015). [This plugin has been published in Behavior Research Methods](https://link.springer.com/article/10.3758/s13428-020-01445-w). You can use this plugin free of charge under the MIT license.
The jspsych-psychophysics plugin is developed for conducting online/Web-based psychophysical experiments using [jsPsych](http://www.jspsych.org/) (de Leeuw, 2015). [This plugin has been published in Behavior Research Methods](https://link.springer.com/article/10.3758/s13428-020-01445-w). You can use this plugin free of charge under the MIT license.

## What you can do with the jspsych-psychophysics plugin
- You can present multiple stimuli asynchronously. In other words, you can set stimulus onset asynchronies (SOAs) in a single trial.
Expand Down

0 comments on commit 868a0dc

Please sign in to comment.