// Version(1/22/2023) Feel free to copy and paste without giving credit. I'm not joking it's fine!
2
// More settings are below athleteData. These could be of interest if you want to customize the leaderboard.
3
// Custom elimination statuses (elim): 0=not eliminated, 1=eliminated from the start, 2=eliminated but then not eliminated, 3=not eliminated but then eliminated
4
// IMPORTANT: If an image fails to load, try copying the image (not the link) to https://onlineimagetools.com/convert-image-to-data-uri and pasting the output URL here. It'll take longer to load it and it's extremely slow to delete due to there being thousands or millions of characters, but this is the best way to fix this right now.
5
// An alternative link that outputs much shorter data URLs for large images but reduces quality, which is much easier to handle: https://onlineimagetools.com/resize-image?chain=convert-image-to-data-uri&width=128&height=128&ratio=false
6
// You could even upload the images to one of your sketches and copy the uploaded image's URL there, but this can take up space from your data storage plan.
7
// If you want to migrate score data from another leaderboard sketch's array system to this sketch's new array system, visit https://openprocessing.org/sketch/1441540
varplayers=athleteData.length// if you make this higher, you should add more athletes to the top. When using the legacy array system, change this to names.length for best results
39
varuseAddPoints=false// Amount of points added beforehand.
40
varsortFirst=true// If true, athleteData will be sorted by start values before starting the sketch to make the bar layering less predictable, thus the athlete with lowest points will be in the front, and vice versa. This does not work when using the legacy array system.
41
vareliminatedAthletes=11// Prior to points being added, this many athletes with the lowest points are eliminated (This overrides any custom elimination statuses)
42
vareliminationCount=1// After points were added, this many athletes with the lowest points will be eliminated, as long as they haven't been eliminated already (This overrides any custom elimination statuses)
43
vareliminatedText="ELIMINATED"// This is the text that is shown when a athlete is eliminated. Try adding spaces to the beginning if it is too close to the athlete name.
44
varcreditText="Piehacker1111"// Credit the original creator, EliK! If you'd still like to modify this, I guess you could do so. Leave blank to disable.
45
varcreditTextSize=18// Credit's text size
46
vartextStrokeSize=0// Stroke/outline size for text. Set this to 0 to disable.
47
varcreditTextStroke=false// If true, creditText will also have the stroke/outline
48
49
varwaitSecs=1// This is how many seconds until the movement starts
50
varmoveTime=3// This is how many seconds the movement of adding points will last
51
varmoveEasing="SINE-OUT"// Change the way the athletes' points are added. This can normally be LINEAR, SINE, QUAD, CUBIC, QUART, QUINT, EXPO, CIRC, BACK, ELASTIC, or BOUNCE, with dash-separated modifiers IN, OUT, and INOUT. (Example: "QUINT-IN" will return quintic easing that gets faster over time.) Leave blank to set it to LINEAR sorting movement.
52
varsortDelay=0// This is how many seconds it takes between adding points and sorting athletes
53
varsortTime=3// This is how many seconds it takes to move athletes, sorting them by points
54
varsortEasing="SINE-OUT"// Change the way the athletes are sorted. Similar to moveEasing.
55
vareliminationWaitSecs=1// This is how many seconds until athletes get eliminated after movements finish
56
vareliminatedTextFadeSecs=1// How many seconds it takes for the eliminated text to fade when appearing. Set to 0 to disable and make it instantly appear.
57
vareliminatedTextFadeEasing="LINEAR"// Change the way the eliminated text fades. Similar to moveEasing and sortEasing.
58
59
varbackgroundColor= {r:0,g:0,b:0} // Background color. Setting the transparency effect (a) lower than the default 255 could give a cool effect!
60
varbackgroundImage="https://public.flourish.studio/uploads/1006149/8fe530c1-cbad-4b3d-ab97-31a55ff0e1d9.png"// Background image. This will be used instead of the background color if this is defined.
61
varsidebarColor= {r:255,g:255,b:255,a:100} // Sidebar color. Default value with black background is {r:80,g:80,b:80}
62
varsidebarTextColor= {r:255,g:255,b:255} // Sidebar's text color
63
varscoreTextColor= {r:0,g:0,b:0} // Color of scores inside athlete's scorebars. Try to make sure the text is at least somewhat visible for every athlete. If this is set to "SAME" it will use the same color as the scorebar
64
vartextStrokeColor= {r:0,g:0,b:0} // Stroke/outline color for text.
65
vareliminatedTextColor= {r:255,g:0,b:0} // Eliminated text color. If this is set to "SAME" it will use the same color as the scorebar
66
vareliminatedWindowColor= {r:255,g:0,b:0,a:128} // Color of the windows that cover the scorebars of eliminated athletes. Set the a value to 0 to disable.
67
varcreditTextColor= {r:255,g:255,b:255} // Credit's text color
68
varsidebarWidth=215// Sidebar width
69
varscorebarWidth=0// Additional athlete's scorebar width. Assuming points are 0, this is the exact width.
70
varscorebarEndWidth=0.672// This value multiplied by the sketch width, will be the width of the scorebar with the highest score at the end of point adding.
71
varscorebarHeight=0.875// Scorebar height multiplier. If this is 1, then there will be no spacing between scorebars. It's recommended to set this to 1 if there are 30 or more players.
72
varscorebarTextSize=1// Text size multiplier for player names, scores and eliminated text
73
varscorebarInFront=true// If true, athlete's names, scorebars, and points numbers will go in front of the sidebar. It's not recommended to set this to false while nameSide is 0.
74
varscorebarImageMode=1// 0: Image stretches to entire scorebar, 1: Image shown at the start of scorebar, will be stretched if the scorebar is too short
75
varscorebarCornerRoundness=10// Change how round the end corners of scorebars are. This is not supported for images in scorebarImageMode 0 unfortunately...
76
varstarBackground=true// Add stars into the background for decoration.
77
varstarCount=60// Number of background stars
78
varstarColor= {r:255,g:255,b:255} // Background star color
79
varstarSize=1// Background star size multiplier
80
varstarDirection=1// -1: Stars go left, 0: Stars are static, 1: Stars go right
81
82
varshowRanks=true// If true, show text displaying ranks on the sidebar.
83
varshowPoints=true// If true, show athlete points.
84
varshowNames=true// If true, show athlete names.
85
varnameSide=1// The side which athlete names are shown. 0 = sidebar, 1 = next to scorebar (0 may need modifications, try increasing sidebarWidth and lowering sidebarTextMoveX in that case.)
86
varscoreSide=0// The side which athlete scores are shown. 0 = inside scorebar, 1 = next to scorebar
87
varcommaPoints=true// If true, add commas to point numbers.
88
varcommaThreshold=3// If commaPoints is true, this determines which power of 10 will start adding commas to points. 6 = 1 million, 15 = 1 quadrillion. Set this to 3 (1,000) if unsure.
89
varshortenPoints=false// If true, shorten point numbers whenever the number reaches 10^shortenThreshold. For example, this turns 1,234,567 into 1.234M. (M stands for million)
90
varshortenThreshold=99// If shortenPoints is true, this determines which power of 10 will start shortening points. Set this to 6 (1 million) if unsure.
91
varshortenDecimals=1// number of decimal places for shortened numbers
92
varshortenStyle=1// Style for suffixes of shortened points. List: 1: Default, 2: Simplified, 3: NO! style, 4: NO! style simplified, 5: Exponent, 7: Full words... (There are 10 styles in all, go to the shortenStyles tab to see them all)
93
varshortenSeparator=" "// This is the string that separates the shortened numbers between the number and the suffix. Example: Value "sep" = 1.234sepM for 1,234,567
94
varpointDisplayType=""// Change how points are shown. ROUND rounds decimals to the nearest whole number (5.25 to 5, 5.75 to 6), FLOOR rounds down (5.75 to 5), CEIL rounds up (5.25 to 6), and DECIMAL preserves the decimals (5.25 stays the same). Leave blank to set it to ROUND.
95
varpointPrefix=""// Add a prefix that will show before the point numbers
96
varpointPrefixSingular=""// Singular version of pointsPrefix, for 1 point
97
varpointSuffix=""// Add a suffix that will show after the point numbers
98
varpointSuffixSingular=""// Singular version of pointsSuffix, for 1 point
99
100
varbeginSound=""// If you want to play a sound when the sketch begins, add the url here. Leave blank to disable.
101
varbeginSoundMode=4// 0: Play once, 1: Loop until point adding, 2: Loop until sorting, 3: Loop until elimination, 4: Loop forever, like background music
102
varmoveSound=""// If you want to play a sound while the points are being added, add the url here. Leave blank to disable.
103
varmoveSoundMode=1// 0: Play once, 1: Play once and stop at the end of point adding, 2: Loop throughout point adding and stop at the end
104
varmoveSoundPrevent=true// If true, then moveSound will not be played if no score changes are made
105
varsortSound=""// Sound played when sorting players
106
varsortSoundMode=0// 0: Play once, 1: Play once and stop at the end of sorting, 2: Loop throughout sorting and stop at the end
107
varelimSound=""// Sound played when players get eliminated. Plays once.
108
109
varfont="Verdana"// Iceland
110
varfontStyle="NORMAL"// Font style. This can normally be NORMAL, BOLD, ITALIC, or BOLDITALIC. Leave blank to set it to NORMAL.
111
vareliminatedFont="Verdana"// Alternate font used for eliminated athlete text. Leave blank if you don't want a font. Set this to font, "SAME", or "INHERIT" to use the first font instead.
112
vareliminatedFontStyle="BoldItalic"// Font style for eliminated athlete text font. This can normally be NORMAL, BOLD, ITALIC, or BOLDITALIC. Leave blank to set it to NORMAL. Set this to fontStyle, "SAME", or "INHERIT" to use fontStyle instead.
113
varcreditFont="SAME"// Alternate font used for credit text. Leave blank if you don't want a font. Set this to font, "SAME", or "INHERIT" to use the first font instead.
114
varcreditFontStyle="SAME"// Font style for credit text font. This can normally be NORMAL, BOLD, ITALIC, or BOLDITALIC. Leave blank to set it to NORMAL. Set this to fontStyle, "SAME", or "INHERIT" to use fontStyle instead.
115
varsidebarTextAlign="RIGHT"// Text alignment for sidebar text. This can normally be LEFT, CENTER, or RIGHT. Leave blank to set it to CENTER.
116
117
vartextMoveX=-5// Move all text by this much in horizontal axis. Try changing this if the text cuts off near the end.
118
vartextMoveY=3// Move all text by this much in vertical axis. Try changing this is the text is mostly off-center.
119
varsidebarTextMoveX=40// Move all sidebar text by this much in horizontal axis simultaneously with textMoveX. Try changing this is the text is mostly off-center.
120
varsidebarTextMoveY=0// Move all sidebar text by this much in vertical axis simultaneously with textMoveY. Try changing this is the text is mostly off-center.
121
varcreditTextMoveX=1// Move credit text by this much in horizontal axis. Try changing this if the text cuts off near the end.
122
varcreditTextMoveY=1// Move credit text by this much in vertical axis.
123
124
varfps=60// Frames Per Second.
125
varwindowWidthMultiplier=1// Multiply regular window width by this value.
126
varwindowHeightMultiplier=1// Multiply regular window height by this value.
127
128
// Legacy array system starts here.
129
// This system is harder to edit due to all the athlete data being lumped together, making it harder to find a specific one's score. This system also does not support images or custom elimination statuses.
130
varuseLegacy=false// If you want to use the legacy array system, set this to true. Optionally you can move all lines inbetween the legacy array system comments to the top.
p5.func is a p5 extension that provides new objects and utilities for function generation in the time, frequency, and spatial domains.
Examples: Direct Evaluation - Array Filling
Oh, that naughty sketch! Please let us know what the issue is below.
Apply Template
Applying this template will reset your sketch and remove all your changes. Are you sure you would like to continue?
Report Sketch
Report Comment
Please confirm that you would like to report the comment below.
We will review your submission and take any actions necessary per our Community Guidelines. In addition to reporting this comment, you can also block the user to prevent any future interactions.
Please report comments only when necessary. Unnecessary or abusive use of this tool may result in your own account being suspended.
Are you sure you want to delete your sketch?
Any files uploaded will be deleted as well.
Forks of this sketch will become the forks of "Day 12 S2".
Delete Comment?
This will also delete all the replies to this comment.
Delete this tab? Any code in it will be deleted as well.
Select a collection to submit your sketch
We Need Your Support
Since 2008, OpenProcessing has provided tools for creative coders to learn, create, and share over a million open source projects in a friendly environment.
Niche websites like ours need your continued support for future development and maintenance, while keeping it an ad-free platform that respects your data and privacy!
Please consider subscribing below to show your support with a "Plus" badge on your profile and get access to many other features!
Its going down!
A fork of Day 12 S2 by piehacker1111
CC Attribution NonCommercial ShareAlike
Day 13 S2
xxxxxxxxxx
// Version(1/22/2023) Feel free to copy and paste without giving credit. I'm not joking it's fine!
// More settings are below athleteData. These could be of interest if you want to customize the leaderboard.
// Custom elimination statuses (elim): 0=not eliminated, 1=eliminated from the start, 2=eliminated but then not eliminated, 3=not eliminated but then eliminated
// IMPORTANT: If an image fails to load, try copying the image (not the link) to https://onlineimagetools.com/convert-image-to-data-uri and pasting the output URL here. It'll take longer to load it and it's extremely slow to delete due to there being thousands or millions of characters, but this is the best way to fix this right now.
// An alternative link that outputs much shorter data URLs for large images but reduces quality, which is much easier to handle: https://onlineimagetools.com/resize-image?chain=convert-image-to-data-uri&width=128&height=128&ratio=false
// You could even upload the images to one of your sketches and copy the uploaded image's URL there, but this can take up space from your data storage plan.
// If you want to migrate score data from another leaderboard sketch's array system to this sketch's new array system, visit https://openprocessing.org/sketch/1441540
var athleteData = [
{name:"Red", r:255, g:0, b:0, elim:0, image:"", start:847, end:1080 },
{name:"Maroon", r:128, g:0, b:0, elim:0, image:"", start:51, end:51 },
{name:"Orange", r:255, g:100, b:0, elim:0, image:"", start:784, end:1089 },
{name:"Yellow", r:255, g:255, b:0, elim:0, image:"", start:285, end:285 },
{name:"Lime", r:0, g:255, b:0, elim:0, image:"", start:197, end:197 },
{name:"Green", r:0, g:200, b:0, elim:0, image:"", start:569, end:569 },
{name:"Cyan", r:0, g:255, b:255, elim:0, image:"", start:86, end:86 },
{name:"Blue", r:0, g:0, b:255, elim:0, image:"", start:26, end:26 },
{name:"Grey", r:128, g:128, b:128, elim:0, image:"", start:940, end:1263 },
{name:"Purple", r:100, g:0, b:127, elim:0, image:"", start:10, end:10 },
{name:"Brown", r:100, g:50, b:0, elim:0, image:"", start:916, end:1257 },
{name:"Silver", r:192, g:192, b:192, elim:0, image:"", start:384, end:384 },
{name:"Pink", r:255, g:192, b:203, elim:0, image:"", start:898, end:1167 },
{name:"Magenta", r:255, g:0, b:255, elim:0, image:"", start:813, end:1171 },
{name:"Black", r:40, g:40, b:40, elim:0, image:"", start:838, end:1089 },
{name:"White", r:255, g:255, b:255, elim:0, image:"", start:771, end:771 },
{name:"Midnight", r:25, g:25, b:112, elim:0, image:"", start:915, end:1202 },
{name:"Cream", r:255, g:250, b:160, elim:0, image:"", start:136, end:136 },
{name:"Rainbow", r:150, g:212, b:6, elim:0, image:"", start:2, end:2 },
]
var players = athleteData.length // if you make this higher, you should add more athletes to the top. When using the legacy array system, change this to names.length for best results
var useAddPoints = false // Amount of points added beforehand.
var sortFirst = true // If true, athleteData will be sorted by start values before starting the sketch to make the bar layering less predictable, thus the athlete with lowest points will be in the front, and vice versa. This does not work when using the legacy array system.
var eliminatedAthletes = 11 // Prior to points being added, this many athletes with the lowest points are eliminated (This overrides any custom elimination statuses)
var eliminationCount = 1 // After points were added, this many athletes with the lowest points will be eliminated, as long as they haven't been eliminated already (This overrides any custom elimination statuses)
var eliminatedText = "ELIMINATED" // This is the text that is shown when a athlete is eliminated. Try adding spaces to the beginning if it is too close to the athlete name.
var creditText = "Piehacker1111" // Credit the original creator, EliK! If you'd still like to modify this, I guess you could do so. Leave blank to disable.
var creditTextSize = 18 // Credit's text size
var textStrokeSize = 0 // Stroke/outline size for text. Set this to 0 to disable.
var creditTextStroke = false // If true, creditText will also have the stroke/outline
var waitSecs = 1 // This is how many seconds until the movement starts
var moveTime = 3 // This is how many seconds the movement of adding points will last
var moveEasing = "SINE-OUT" // Change the way the athletes' points are added. This can normally be LINEAR, SINE, QUAD, CUBIC, QUART, QUINT, EXPO, CIRC, BACK, ELASTIC, or BOUNCE, with dash-separated modifiers IN, OUT, and INOUT. (Example: "QUINT-IN" will return quintic easing that gets faster over time.) Leave blank to set it to LINEAR sorting movement.
var sortDelay = 0 // This is how many seconds it takes between adding points and sorting athletes
var sortTime = 3 // This is how many seconds it takes to move athletes, sorting them by points
var sortEasing = "SINE-OUT" // Change the way the athletes are sorted. Similar to moveEasing.
var eliminationWaitSecs = 1 // This is how many seconds until athletes get eliminated after movements finish
var eliminatedTextFadeSecs = 1 // How many seconds it takes for the eliminated text to fade when appearing. Set to 0 to disable and make it instantly appear.
var eliminatedTextFadeEasing = "LINEAR" // Change the way the eliminated text fades. Similar to moveEasing and sortEasing.
var backgroundColor = {r:0,g:0,b:0} // Background color. Setting the transparency effect (a) lower than the default 255 could give a cool effect!
var backgroundImage = "https://public.flourish.studio/uploads/1006149/8fe530c1-cbad-4b3d-ab97-31a55ff0e1d9.png" // Background image. This will be used instead of the background color if this is defined.
var sidebarColor = {r:255,g:255,b:255,a:100} // Sidebar color. Default value with black background is {r:80,g:80,b:80}
var sidebarTextColor = {r:255,g:255,b:255} // Sidebar's text color
var scoreTextColor = {r:0,g:0,b:0} // Color of scores inside athlete's scorebars. Try to make sure the text is at least somewhat visible for every athlete. If this is set to "SAME" it will use the same color as the scorebar
var textStrokeColor = {r:0,g:0,b:0} // Stroke/outline color for text.
var eliminatedTextColor = {r:255,g:0,b:0} // Eliminated text color. If this is set to "SAME" it will use the same color as the scorebar
var eliminatedWindowColor = {r:255,g:0,b:0,a:128} // Color of the windows that cover the scorebars of eliminated athletes. Set the a value to 0 to disable.
var creditTextColor = {r:255,g:255,b:255} // Credit's text color
var sidebarWidth = 215 // Sidebar width
var scorebarWidth = 0 // Additional athlete's scorebar width. Assuming points are 0, this is the exact width.
var scorebarEndWidth = 0.672 // This value multiplied by the sketch width, will be the width of the scorebar with the highest score at the end of point adding.
var scorebarHeight = 0.875 // Scorebar height multiplier. If this is 1, then there will be no spacing between scorebars. It's recommended to set this to 1 if there are 30 or more players.
var scorebarTextSize = 1 // Text size multiplier for player names, scores and eliminated text
var scorebarInFront = true // If true, athlete's names, scorebars, and points numbers will go in front of the sidebar. It's not recommended to set this to false while nameSide is 0.
var scorebarImageMode = 1 // 0: Image stretches to entire scorebar, 1: Image shown at the start of scorebar, will be stretched if the scorebar is too short
var scorebarCornerRoundness = 10 // Change how round the end corners of scorebars are. This is not supported for images in scorebarImageMode 0 unfortunately...
var starBackground = true // Add stars into the background for decoration.
var starCount = 60 // Number of background stars
var starColor = {r:255,g:255,b:255} // Background star color
var starSize = 1 // Background star size multiplier
var starDirection = 1 // -1: Stars go left, 0: Stars are static, 1: Stars go right
var showRanks = true // If true, show text displaying ranks on the sidebar.
var showPoints = true // If true, show athlete points.
var showNames = true // If true, show athlete names.
var nameSide = 1 // The side which athlete names are shown. 0 = sidebar, 1 = next to scorebar (0 may need modifications, try increasing sidebarWidth and lowering sidebarTextMoveX in that case.)
var scoreSide = 0 // The side which athlete scores are shown. 0 = inside scorebar, 1 = next to scorebar
var commaPoints = true // If true, add commas to point numbers.
var commaThreshold = 3 // If commaPoints is true, this determines which power of 10 will start adding commas to points. 6 = 1 million, 15 = 1 quadrillion. Set this to 3 (1,000) if unsure.
var shortenPoints = false // If true, shorten point numbers whenever the number reaches 10^shortenThreshold. For example, this turns 1,234,567 into 1.234M. (M stands for million)
var shortenThreshold = 99 // If shortenPoints is true, this determines which power of 10 will start shortening points. Set this to 6 (1 million) if unsure.
var shortenDecimals = 1 // number of decimal places for shortened numbers
var shortenStyle = 1 // Style for suffixes of shortened points. List: 1: Default, 2: Simplified, 3: NO! style, 4: NO! style simplified, 5: Exponent, 7: Full words... (There are 10 styles in all, go to the shortenStyles tab to see them all)
var shortenSeparator = " " // This is the string that separates the shortened numbers between the number and the suffix. Example: Value "sep" = 1.234sepM for 1,234,567
var pointDisplayType = "" // Change how points are shown. ROUND rounds decimals to the nearest whole number (5.25 to 5, 5.75 to 6), FLOOR rounds down (5.75 to 5), CEIL rounds up (5.25 to 6), and DECIMAL preserves the decimals (5.25 stays the same). Leave blank to set it to ROUND.
var pointPrefix = "" // Add a prefix that will show before the point numbers
var pointPrefixSingular = "" // Singular version of pointsPrefix, for 1 point
var pointSuffix = "" // Add a suffix that will show after the point numbers
var pointSuffixSingular = "" // Singular version of pointsSuffix, for 1 point
var beginSound = "" // If you want to play a sound when the sketch begins, add the url here. Leave blank to disable.
var beginSoundMode = 4 // 0: Play once, 1: Loop until point adding, 2: Loop until sorting, 3: Loop until elimination, 4: Loop forever, like background music
var moveSound = "" // If you want to play a sound while the points are being added, add the url here. Leave blank to disable.
var moveSoundMode = 1 // 0: Play once, 1: Play once and stop at the end of point adding, 2: Loop throughout point adding and stop at the end
var moveSoundPrevent = true // If true, then moveSound will not be played if no score changes are made
var sortSound = "" // Sound played when sorting players
var sortSoundMode = 0 // 0: Play once, 1: Play once and stop at the end of sorting, 2: Loop throughout sorting and stop at the end
var elimSound = "" // Sound played when players get eliminated. Plays once.
var font = "Verdana" // Iceland
var fontStyle = "NORMAL" // Font style. This can normally be NORMAL, BOLD, ITALIC, or BOLDITALIC. Leave blank to set it to NORMAL.
var eliminatedFont = "Verdana" // Alternate font used for eliminated athlete text. Leave blank if you don't want a font. Set this to font, "SAME", or "INHERIT" to use the first font instead.
var eliminatedFontStyle = "BoldItalic" // Font style for eliminated athlete text font. This can normally be NORMAL, BOLD, ITALIC, or BOLDITALIC. Leave blank to set it to NORMAL. Set this to fontStyle, "SAME", or "INHERIT" to use fontStyle instead.
var creditFont = "SAME" // Alternate font used for credit text. Leave blank if you don't want a font. Set this to font, "SAME", or "INHERIT" to use the first font instead.
var creditFontStyle = "SAME" // Font style for credit text font. This can normally be NORMAL, BOLD, ITALIC, or BOLDITALIC. Leave blank to set it to NORMAL. Set this to fontStyle, "SAME", or "INHERIT" to use fontStyle instead.
var sidebarTextAlign = "RIGHT" // Text alignment for sidebar text. This can normally be LEFT, CENTER, or RIGHT. Leave blank to set it to CENTER.
var textMoveX = -5 // Move all text by this much in horizontal axis. Try changing this if the text cuts off near the end.
var textMoveY = 3 // Move all text by this much in vertical axis. Try changing this is the text is mostly off-center.
var sidebarTextMoveX = 40 // Move all sidebar text by this much in horizontal axis simultaneously with textMoveX. Try changing this is the text is mostly off-center.
var sidebarTextMoveY = 0 // Move all sidebar text by this much in vertical axis simultaneously with textMoveY. Try changing this is the text is mostly off-center.
var creditTextMoveX = 1 // Move credit text by this much in horizontal axis. Try changing this if the text cuts off near the end.
var creditTextMoveY = 1 // Move credit text by this much in vertical axis.
var fps = 60 // Frames Per Second.
var windowWidthMultiplier = 1 // Multiply regular window width by this value.
var windowHeightMultiplier = 1 // Multiply regular window height by this value.
// Legacy array system starts here.
// This system is harder to edit due to all the athlete data being lumped together, making it harder to find a specific one's score. This system also does not support images or custom elimination statuses.
var useLegacy = false // If you want to use the legacy array system, set this to true. Optionally you can move all lines inbetween the legacy array system comments to the top.
var names = ["Maroon","Red","Brown","Orange","Olive","Yellow","Lime","Dark Green","Green","cyan","Navy","Blue","Purple","Magenta","Pink","Black","Coal","Gray","Silver","White"]
var colors = [{r:128,g:0,b:0},{r:255,g:0,b:0},{r:128,g:63,b:0},{r:255,g:128,b:0},{r:128,g:128,b:0},{r:255,g:255,b:0},{r:191,g:255,b:0},{r:0,g:128,b:0},{r:0,g:255,b:0},{r:0,g:255,b:255},{r:0,g:0,b:128},{r:0,g:0,b:255},{r:128,g:0,b:255},{r:255,g:0,b:255},{r:255,g:128,b:255},{r:48,g:48,b:48},{r:63,g:63,b:63},{r:128,g:128,b:128},{r:191,g:191,b:191},{r:255,g:255,b:255}]
var startingPoints = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
var endingPoints = [13483,3,1976,14970,4131,20803,100,37518,2815,60,108,54,15633,48521,119,1946,59,78,17243,5456]
//var endingPoints = "random1024"
var addPoints = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
// Legacy array system ends here.
Examples: Play - Synthesis - Microphone
Examples: Direct Evaluation - Array Filling
See More Shortcuts
Please verify your email to comment
Verify Email