- Open Access
Virtual environment to quantify the influence of colour stimuli on the performance of tasks requiring attention
© Silva and Frère; licensee BioMed Central Ltd. 2011
- Received: 23 February 2011
- Accepted: 19 August 2011
- Published: 19 August 2011
Recent studies indicate that the blue-yellow colour discrimination is impaired in ADHD individuals. However, the relationship between colour and performance has not been investigated. This paper describes the development and the testing of a virtual environment that is capable to quantify the influence of red-green versus blue-yellow colour stimuli on the performance of people in a fun and interactive way, being appropriate for the target audience.
An interactive computer game based on virtual reality was developed to evaluate the performance of the players.
The game's storyline was based on the story of an old pirate who runs across islands and dangerous seas in search of a lost treasure. Within the game, the player must find and interpret the hints scattered in different scenarios. Two versions of this game were implemented. In the first, hints and information boards were painted using red and green colours. In the second version, these objects were painted using blue and yellow colours. For modelling, texturing, and animating virtual characters and objects the three-dimensional computer graphics tool Blender 3D was used. The textures were created with the GIMP editor to provide visual effects increasing the realism and immersion of the players. The games were tested on 20 non-ADHD volunteers who were divided into two subgroups (A1 and A2) and 20 volunteers with ADHD who were divided into subgroups B1 and B2. Subgroups A1 and B1 used the first version of the game with the hints painted in green-red colors, and subgroups A2 and B2 the second version using the same hints now painted in blue-yellow. The time spent to complete each task of the game was measured.
Data analyzed with ANOVA two-way and posthoc TUKEY LSD showed that the use of blue/yellow instead of green/red colors decreased the game performance of all participants. However, a greater decrease in performance could be observed with ADHD participants where tasks, that require attention, were most affected.
The game proved to be a user-friendly tool capable to detect and quantify the influence of color on the performance of people executing tasks that require attention and showed to be attractive for people with ADHD.
- Virtual Reality
- Computer Game
- Virtual Environment
- Colour Discrimination
- Colour Stimulus
The attention deficit/hyperactivity disorder (ADHD) is defined as a neuropsychiatric disorder that is characterized essentially by lack of attention, agitation, and impulsiveness, which may lead to poor school performance as well as emotional and relationship difficulties . Lower attention and higher activity can be caused by perinatal morbidity, birth weight, gestational age and socio-economic status at infancy .
Virtual reality systems have also been presented as a promising tool in many areas of treatment and rehabilitation . The technological advances associated with cost reductions make the assessment enjoyable and pleasant . In fact, virtual reality, when using dynamic three-dimensional stimuli, can provide a good level of concentration and maintain a high level of involvement and motivation during the entire test .
Several authors used virtual reality to evaluate attention through the brain waves of volunteers . In another study,  an attention training system was developed, where the volunteers pilot a fighter plane. The aircraft controls as well as their sights are directly related to concentration, i.e., the higher the concentration, the more effective the control and more precise the targeting. However, none of these studies quantified the influence of colours on the attention performance. The attention required in a virtual environment is closely related to the visual effects, and a higher level of immersion can be achieved with a more attractive and engaging content . Advances in computing and new display technologies enabled the development of virtual environments that provide situations similar to those experienced in "real life", enabling detection or treatment of ADHD [6, 9]. These benefits were used in the adventure game developed here.
Other studies [10–13] showed that people with ADHD have impairment in the blue-yellow discrimination. In those studies the influence of colours were detected by neuropsychological conventional tests such as Stroop or through questionnaires, but the effect on performance of daily tasks requiring attention has not been studied.
The developed computer game presented in this paper uses a virtual environment to quantify the effect of colour on the performance in accomplishing oriented tasks. It was used to evaluate individuals with ADHD without using frustrating or repetitive tasks that are often annoying to these patients.
Two versions of the same game were implemented. In the first version important objects (hints and information boards) were painted using green/red colours and in the second version, these important objects were painted in blue/yellow.
The developed game resulted in a fun-filled way to relate the perception of some colours to the performance of volunteers with ADHD through a virtual environment.
The game "Raiders of the Lost Treasure" was developed using Blender, an open source 3D content creation suite . The use of this software package enabled us to create and manipulate three-dimensional contents, modelling, animation and rendering. The interactivity of the game engine was implemented in logical blocks and programmed using the computer language Python.
The models were constructed by combining and deforming the geometry of basic 3D objects, such as: circles, planes, cubes, spheres, cones, and cylinders. To change the appearance of a surface, the Vertex Paint feature was used, which allowed colours to be applied on the faces of the objects. The texture mapping was performed with the UVMap feature where a map of coordinates (UV coordinates), defines what should be applied on each side of the model. For the animation, the local structure of the bodies was modified to simulate surfaces that contract and stretch in response to external forces (skinning).
Defining type and characteristics of the game
The computer game "Raiders of the Lost Treasure" was developed to quantify the influence of colour stimuli on the performance of people with ADHD. An adventure game was chosen for being appropriate for children and adults.
Due to the low tolerance of the target audience in relation to failure, the game contains no time limit or virtual life losses. To make the game interesting for ADHD patients, the tasks are shorter and rewards are offered more often than those usually found in commercial adventure games.
The view mode chosen was the first person, so the player can see in more details the scenarios and their characteristics.
Sound hints to indicate the approach of important items were not implemented, making it possible to evaluate only the influence of colour stimuli, as recommended by American Psychological Association .
The game is sequential and the tasks follow a logical predefined order,, for example, entering the lake is allowed only after discovering the fishing net.
Prior to beginning the game, an audio file with an introductory narrative runs and tells the story of an old pirate named Carlos who is interested in finding a lost treasure on a faraway island. When arriving at the island, he discovers that the treasure is located in an abandoned mine's room. To open this room, it is necessary to find a magic key, a mandala that was divided into four pieces, which were hidden in different places on the island. On the way, several coins are available; however, in order to get them it is necessary to avoid poisonous snakes.
Prior to starting the first task, an introductory help text is displayed giving information regarding relevant objects and hints necessary to achieve the goal of the game.
The game was divided into two levels and each level has nine tasks. The first level takes place outdoors, in an island, which favors the player to explore the scene quickly. The second level takes place inside a mine where more attention is needed to meet and overcome the challenges.
In the second level, hints help the player to find the two other parts of the mandala. When the search is completed and the mandala is put in place, the treasure room opens. This level was implemented to favour the players who are able to keep high levels of attention and who can remember the location of items placed at strategic points.
Versions of the game
In the second version, the colours of these items were changed to the blue-yellow.
Players' performance was evaluated by measuring the time spent to accomplish each task. Although no time limit was imposed to finish the game. Finishing it meant winning, while giving up meant loosing.
The logical structure of the game was developed using modular programming, which enabled us to reuse several routines during the implementation of the tasks. The scripts were written in a structured manner using the language Python. The software validation of the internal structure of the game was performed using a white box test and a functionality test was performed by a black box test .
Task 1- Find the resident who knows the secrets of Treasure Island;
Task 2- Find the trunk where the first part of the mandala is located;
Task 3- Find the key that opens the trunk;
Task 4- Go back to the trunk and catch the first part of the mandala;
Task 5- Find the lake were the second part of the mandala is submerged;
Task 6- Find a fishing net to catch the second part of the mandala;
Task 7- Go back to the lake to catch the second part of the mandala;
Task 8- Locate the mine where the other parts of the mandala resides;
Task 9- Find the axe to break the fence that blocks the mine entrance;
Task 10- Find the wizard who knows where the third part of the mandala is located;
Task 11- Find the place indicated by the wizard;
Task 12- Frighten the owl that guards the third part of the mandala;
Task 13- Find the wizard, who then requests the player to locate his lost ring in exchange for the fourth part of the mandala;
Task 14- Find the wizard's ring;
Task 15- Find a piece of meat to capture the tiger that guards the wizard's ring;
Task 16- Returns to the wizard and give him the ring to receive the fourth part of the mandala;
Task 17- Find the treasure room;
Task 18- Finally, insert the completed mandala into the hole on the wall close to the treasure room's door to unlock it.
The game developed in this study was approved by the local medical ethics committee. Experimental data was obtained from 17 men and 23 women aged 15 to 25 years old with moderate-to-good experience in computer games. The participants, all students, were selected by evaluating their computer skills through the execution of one introductory level of the commercial computer game "Prince of Persia"  with commands and characteristics similar to the game developed for this study. It was up to each user to define which commands to use: the mouse and keyboard, simultaneously or only the keyboard. From the 90 players who accomplished this test in 300 seconds ± 5%, 40 volunteers were recruited, consisting of 20 non-ADHD volunteers (A - control group) and 20 volunteers with ADHD, free of medications (B - experimental group). The classification for ADHD of the 90 volunteers was realized by a psychologist who analysed the data forms filled out by counsellors and teachers of the students, following the procedures of the Scale Adapted Disorder Attention Deficit/Hyperactivity Disorder test .
Groups A and B were subdivided into four subgroups of volunteers (A1, A2 and B1, B2). Subgroups A1 and B1 played the first version of the game with a predominance of green-red hints and subgroups A2 and B2 played the second version with predominance of blue/yellow for the objects.
The game is normally controlled using a mouse and a keyboard. A second option, selectable during the initialisation of the game, allows the game to be controlled by an alternate script using only a keyboard. In this case the screen pointer can be moved using the line-up, line-down, left and right keys available on a standard keyboard or through the assignment of user selected keys.
The performance of the players was measured, recording the elapsed time in seconds needed to perform each task. At the end of each task, a script stores the value in a variable and assigns 0 to the time counter initiating next task. At the end of the game these values, the name of the volunteer, as well as the day on which the test was performed, were stored in a log file.
The obtained results were analysed with the D'Agostino's test to prove that the distribution was normal. The Two-way ANOVA test was used to detect if significant difference exists between subgroups and the posthoc Tukey - LSD (least significant difference) test was used to define which subgroup was different from the remaining subgroups.
First level - external scenery
Subgroup average time in the first level "TmF1g"
A1 - without-ADHD
B1 - ADHD
A2 - without -ADHD
B2 - ADHD
Subgroup B1 completed the first level of the game 43% faster than subgroup B2 and 59.30% faster than the subgroup A1, while subgroup A1 was 21% faster than A2. Statistical analysis two-way ANOVA with p < 0.05 and posthoc TUKEY - LSD (least significant difference) showed a significant difference between all subgroups.
Second level - Internal scenery
Subgroup average times for the second level "TmF2g"
A1 - without- ADHD
B1 - ADHD
A2 - without- ADHD
B2 - ADHD
For the second level of the game, the two-way ANOVA test with p < 0.05 in conjunction with posthoc Tukey - LSD (least significant difference) showed that subgroup B1 was significantly different from B2. However, subgroups A1 and A2 showed no significant difference. These results show that change of colours affect the performance for tasks requiring attention for ADHD subgroups.
The first level favors the group with ADHD (B1, B2) and the second level the non-ADHD group (A1, A2). If the full game doesn't favor one group over the other, the sum of the average times spent to complete the first level by all the participants should be similar to that of the second level.
Total time for each level
First level -TmtF1
Second level - TmtF2
Average times and percentages with/without ADHD
Average time spend
Percentage of game time spent
Disbalance in favour of level 1 in %
Average time spend
Percentage of game time spent
Disbalance in favour of level 1 in %
Game level 1
Game level 2
Game level 1
Game level 2
The graphical tool Blender 3D provided an interface that enhanced the realism and the immersion level in the game story, fulfilling the established requirements for this research such as designing a game attractive to people with ADHD. To encourage the immersion level for these persons, we inserted detailed textures and several continuous animations in the virtual environment . However, in order to avoid large graphic processing efforts during execution we started the animation of all objects in the same timeline. This resource also helped in the verification of actions sequences.
The game was divided in two levels: the first being an external environment taking place on an island where several items, needed to complete the tasks, were spread. This level favours players with ADHD who tend to explore the scene very quickly .
The second level takes place inside a mine. During this phase more attention is needed to find the items and to overcome the challenges. To do so, the players need to remember the previous travelled paths, which was easy for the volunteers without ADHD (A1 and A2). On the other hand, volunteers with ADHD (B1 and B2) were frequently lost during this phase, spending more time to conclude their tasks.
Players with ADHD (B1 and B2) performed better during the first phase, while those without these characteristics (A1 and A2) proved to be more efficient during the second phase. Analysing the time needed to complete the whole game, we observed that the game did not favoured any of these groups.
Moreover, studies [10, 12, 13] showed that people with ADHD have an impaired colour discrimination in the blue-yellow pathway, therefore, we developed two versions of the game application. In the first version, objects with hints, screen dialogues and information signs were represented using predominantly red-green colours. In the second version, blue-yellow were the predominant colours used to display these objects. The results showed that the subgroups (A1 and B1) using the green-red version of the game performed better than subgroups (A2 and B2). However, this effect was observed to be much larger in individuals with ADHD.
To accomplish this research, we developed a virtual environment offering increased immersion and interest for people with ADHD as also shown in other studies [6, 7, 19]. The success of this approach was confirmed in our study since all participants reached the end of the game successfully.
Many studies using virtual environments have been carried out by other research groups in order to: change the scale of visual skills ; perform cognitive training ; enhance attention ; evaluate attention  and to aid in ADHD diagnosis .
This particular colour impairment was analysed in this study using the developed game providing new contributions to the field. As a matter of fact, this playful resource allowed us to control the lack of motivation which can harm the performance of ADHD volunteers in task-oriented activities. This behaviour can influence experimental results and was therefore addressed up-front in our research.
Previous studies [10, 12, 13], applying the Stroop test, demonstrated that subjects with ADHD committed more errors than non-ADHD subjects in discriminating colours. However, researchers  suggested the use of another method to clarify color vision deficits in ADHD.
The tests presented in this paper suggest a new method to analyse and quantify the dependence of colours on the performance of activities related to colour using tasks closer to those encountered in daily activities. In our test the participants were submitted to tasks that required attention, their performance was determined using the time spent to complete these tasks successfully.
Many variables can affect the information collected in computer games such as: the ability in the use of command interface and the lack of collaboration from participants. In our research, through the use of a virtual environment that provides a playful and immersive mechanism, we were able to evaluate the performance of ADHD subjects without the influence of perceptions of boring and repetitive tasks. This, coupled to a selection process of volunteers having similar computer skills, enabled us to obtain standard deviations of less than 5% for task execution times within the same group (Tables 1 and 2). Therefore we believe that our method was not susceptible to uncontrolled variables.
ADHD can generate many social and behavioural problems including low learning capabilities. Studying the influence of colours used in conveying information can be an important aid to reduce the impact of this disorder and its implications on individuals affected by ADHD.
This study confirmed the results obtained by other researchers [10–13], that people with ADHD are influenced by colours. We also showed that these colours affect the performance of tasks that simulate daily activities requiring attention.
The playful game, developed for this purpose, proved to be a new useful and attractive tool to perform this evaluation, allowing the acquisition of quantitative data. It enabled us to compare the behaviour of persons with and without ADHD. The game can be easily adapted to perform other evaluations, such as, text change, tasks change, or the introduction of sound. The collected data shows also a substantial difference in performance between level 1 and 2 of the game for people with and without ADHD. Future work is needed to analyse if the developed virtual environment can contribute in a more ludic and friendly way to diagnose ADHD.
We are grateful to the FAEP (Fundação de Amparo a Ensino e Pesquisa) from Universidade de Mogi das Cruzes for the financial support. We thank Terigi A. Scardovelli who helped design the figures.
- Sagvolden T, Johansen EB, Aase H, Russell VA: A dynamic developmental theory of attention-deficit/hyperactivity disorder (ADHD) predominantly hyperactive/impulsive and combined subtypes. Behavioral and Brain Sciences 2005, 28(3):397–419.View ArticleGoogle Scholar
- McGrath MM, Sullivan M, Devin J, Fontes-Murphy M, Barcelos S, DePalma JL, Faraone S: Early precursors of low attention and hyperactivity in a preterm sample at age four. Issues Compr Pediatr Nurs 2005, 1: 1–15.View ArticleGoogle Scholar
- Jianhuang W, Mingqiang W, Yonghong L, Xin M, Fucang J, Qingmao H: Scale-adaptive surface modeling of vascular structures. BioMedical Engineering OnLine 2010, 9: 75. 10.1186/1475-925X-9-75View ArticleGoogle Scholar
- Geoffrey C, Fatanah S, Sophie P, Jean-Charles P, Aaron JLC, Jessica L, Christopher GP, Geoffrey MS, Katherine TM, Thomas D: Validation of a model-based virtual trials method for tight glycemic control in intensive care. BioMedical Engineering OnLine 2010, 9: 84. 10.1186/1475-925X-9-84View ArticleGoogle Scholar
- Cameirão MS, Badia SB, Oller ED, Verschure P: Neurorehabilitation using the virtual reality based rehabilitation gaming system: methodology, design, psychometrics, usability and validation. Journal of neuroengineering and rehabilitation 2010, 7: 48. 10.1186/1743-0003-7-48View ArticleGoogle Scholar
- Cho BH, Jang DP, Lee JH, Lee JM, Kim JS, Kim SI, Ku JH, Kim IY: Attention Enhancement system using virtual reality and EEG biofeedback. IEEE Computer Society 2002.Google Scholar
- Pope TA, Bogard HE: Extended attention span training system: video game neurotherapy for attention deficit disorder. Child Study Journal 1996, 26: 39–50.Google Scholar
- Lee S, Kim GJ: Effects of visual cues and sustained attention on spatial presence in virtual environments based on spatial and object distinction. Interacting with Computers 2008, 20: 491–502. 10.1016/j.intcom.2008.07.003View ArticleGoogle Scholar
- Fong KN, Chow KY, Chan BC, Lam KC, Lee JC, Li TH, Yan EW, Wong AT: Usability of a virtual reality environment simulating an automated teller machine for assessing and training persons with acquired brain injury. Journal of neuroengineering and rehabilitation 2010, 30: 7–19.Google Scholar
- Roessner V, Banaschewski T, Fillmer-Otte A, Becker A, Albrecht B, Uebel H, Sergeant J, Tannock R, Rothenberger A: Color perception deficits in co-existing attention-deficit/hyperactivity disorder and chronic tic disorders. Journal of Neural Transmission 2008, 115(2):235–239. 10.1007/s00702-007-0817-2View ArticleGoogle Scholar
- Tannock R, Banaschewski T, Gold D: Color naming deficits and attention-deficit/hyperactivity disorder: A retinal dopaminergic hypothesis. Behavioral and Brain Functions 2006., 2(4):Google Scholar
- Banaschewsky T, Rupprt S, Tannock R, Albrecht B, Becker A, Uebel H, Sergeant JA, Rothenberger A: Colour perception in ADHD. Journal of Child Psychology and Psychiatry 2006, 47(6):568–572. 10.1111/j.1469-7610.2005.01540.xView ArticleGoogle Scholar
- Albrecht B, Rothenberger A, Sergeant J, Tannock R, Uebel H, Banaschewski T: Interference control in attention-deficit/hyperactivity disorder: differential Stroop effects for colour-naming versus counting. Journal of neural transmission 2008, 115: 241–7. 10.1007/s00702-007-0818-1View ArticleGoogle Scholar
- Blender 3D [http://www.blender.org]
- American Psychological Association [http://www.apa.org/topics/topicadhd.html]
- Glenford MYERSJ: John Wiley & Sons, The Art of Software Testing . 2nd edition. 2004.Google Scholar
- Official website of the series Prince of Persia [http://prince-of-persia.us.ubi.com]
- Benczik BPB: Manual da Escala de Transtorno de Déficit de Atenção/Hiperatividade: Versão para professores. São Paulo: Casa do Psicólogo;; 2000.Google Scholar
- Green CS, Baveller D: Action video game modifies visual selective attention. Nature 2003.Google Scholar
- Rizzo AA, Klimchuk D, Mitura R, Bowerly T, Buckwalter JG, Kerns K, Randall K, Adams R, Finn P, Tarnanas I, Sirbu C, Ollendick TH, Yeh SC: A virtual reality scenario for all seasons: the virtual classroom. 11 international conference on human computer interaction. Beijing. China 2007.Google Scholar
- Andrade VCL, Lima C, Mattos P, Soares A, Carvalho VAL, Cruz A, Franco C, Grieco B: Supermarket Game: an adaptive intelligent computer game for attention deficit/hyperactivity disorder diagnosis. IEEE Computer Society 2006.Google Scholar
- Capilla-González A, Pazo P, Campo P: Nuevas aportaciones a la neurobiología del trastorno por déficit de atención con hiperactividad desde la magnetoencefalografía. Neurologia España 2005, 40: 43–7.Google Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.