In the previous chapter, we discussed basic types, including strings, bools, ints, doubles, and rgb_colors. That is, if you don't specify a default font color using the default_text_color header parameter, you won't get an error when you create a text object and don't assign it a font_color, rather it will default to white (255, 255, 255), as listed on the Header Parameters page. So, if you don't specify a value, it will default to what is listed on the Header Parameters page. Some examples of headers for a scenario file include:ĭefault_text_color = 255,0,0 #red text by defaultĭefault_font = "Arial" #Arial font by defaultĭefault_background_color = 0,255,0 #green backgroundsĪll header parameters have default values. Header parameters set default properties for the scenario. PCL is used to take care of most of the functionality of your scenario. The final portion of the scenario file is the PCL code marked with the statement begin_pcl.For example, if you want to present a word on the screen, you can create a text object in SDL. The SDL is generally used for defining objects that are used in your scenario. After the header parameters and the begin statement is the SDL part of the scenario.There is a full list of header parameters on the Header Parameters page. If you don't specify a value, a default will be used. You may specify the values for certain scenario-wide parameters, such as default font size, number of response buttons used or number of fMRI pulses per scan, here. At the top of a scenario file is the header.However, scenarios may include multiple files as described in the the Scenarios section. Note: Throughout this introduction to programming, scenarios are contained in one file. Scenario files are generally made up of 3 distinct parts: Chapter 2 - SDL/PCL basics Presentation Help
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |