that is called rude. Apologize NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /j
class RainbowText {
constructor(elements, saturation = 100, lightness = 50) {
// Ensure saturation is between 20 and 100, and lightness between 20 and 99
this.saturation = this.clamp(saturation, 20, 100);
this.lightness = this.clamp(lightness, 20, 99);
// script - https://www.html-code-generator.com/html/rainbow-text-generator
// Convert NodeList to array or wrap a single element into an array
const elementArray = elements instanceof NodeList ? Array.from(elements) : [elements];
// Apply the rainbow color effect to each element
elementArray.forEach(element => this.applyColor(element));
}
// Ensure that a value stays within the min and max range
clamp(value, min, max) {
return Math.min(Math.max(value, min), max);
}
// Apply color to the text of a given DOM element
applyColor(element) {
// Ensure element is valid and has text content
if (!element || typeof element.innerText !== 'string') {
console.warn('Invalid element provided to RainbowText');
return;
}
const text = element.innerText;
// If the element contains less than 2 characters, skip processing
if (text.length < 2) return;
// Map each character to a colored <span> based on its position
const coloredSpans = text.split('').map((char, index) => {
const hue = Math.round((360 * index) / text.length);
const color = `hsl(${hue}, ${this.saturation}%, ${this.lightness}%)`;
return `<span style="color: ${color}">${char}</span>`;
});
// Replace the original text with the colored <span> elements
element.innerHTML = coloredSpans.join('');
}
← Return to game
Comments
Log in with itch.io to leave a comment.
Show post...
oh wait you dont put the parentheses
(test)
u have to endable the html5 thing in settings and markdown
imagine having hands
i found you
why u leak my face 😡😡😡😡😡
yeah
grrr....
Show post...
imagine having legs
imagine having organs
imagine not having a father figure
imagine not having a mother figure
Help im getting hunted down by lamp
Vro y
Show post...
im gona eat you
ok
<span style="color:(lavender)">(Howdy Chat)</span>
Mother-
Show post...
Howdy Chat
Hexcode only
Show post...
eeeeeeeeeeeeee
code:
<style>
.rainbow-text {
font-family: Arial Black, Gadget, sans-serif;
text-align: center;
font-weight: bold;
font-size: 50px;
text-shadow: #A3A3A3 1px 1px 0px;
}
.rainbow-text .block-line > span {
display: inline-block;
}
</style>
<h1 class="rainbow-text">ur text here</h1>
how to do it:
first click video,
then paste the code
<style> .rainbow-text { font-family: Arial Black, Gadget, sans-serif; text-align: center; font-weight: bold; font-size: 50px; text-shadow: #A3A3A3 1px 1px 0px; } .rainbow-text .block-line > span { display: inline-block; } </style>ur text here
Show post...
that doesnt work
oh
srry
I've done it with my website
i code things
Show post...
wait what website??? can you show
Show post...
first you enable the markdown thing
than you copy and paste this <span style="color:(color)">(text)</span>
put the color hex of the color you want in the (color)
and put your text in the (text)
Show post...
wwww
Show post...
Show post...
peak
Show post...
yes i am stupid
people who fucking gatekeep the way to color text are such a waste of our air like why do you keep useless shit like this behind bars you moron
Show post...
im not gatekeeping its just kinda hard to understand
why the fuck is it doing that what
Ok amd
that is called rude. Apologize NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /j
Show post...
i am bow from inanimate insanity real
hmm... I cant do css
Guess im a carrot now
(AAAAAAAAAAAAAA)
Show post...
can i eat you
NO! >:(
Show post...
Pixel or Mr fresh classic
Show post...
mine is funnier so you cant do anything
YOU WILL SUFFER 😢😢😢😢
NOO
🫂🫂🫂
Show post...
class RainbowText { constructor(elements, saturation = 100, lightness = 50) { // Ensure saturation is between 20 and 100, and lightness between 20 and 99 this.saturation = this.clamp(saturation, 20, 100); this.lightness = this.clamp(lightness, 20, 99); // script - https://www.html-code-generator.com/html/rainbow-text-generator // Convert NodeList to array or wrap a single element into an array const elementArray = elements instanceof NodeList ? Array.from(elements) : [elements]; // Apply the rainbow color effect to each element elementArray.forEach(element => this.applyColor(element)); }
}
Show post...
are you fucking stupid
Show post...
rainbow
Why u Sad😢
Show post...
r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w r a i n b o w
my eyes hurt
Show post...
haha
gaybow
carrot
Show post...
.animated-rainbow-2 { font-size: 42px; font-family: Arial Black, Gadget, sans-serif; animation: rainbow-color-change 3s linear infinite alternate; } @keyframes rainbow-color-change { 0%, 100% { color: #ff0000; } /* Red / 14% { color: #ff8b00; } / Orange / 28% { color: #e8ff00; } / Yellow / 42% { color: #5dff00; } / Green / 56% { color: #00b9ff; } / Blue / 70% { color: #5d00ff; } / Indigo / 84% { color: #e800ff; } / Violet */ }
Show post...
eee i dont like this
Show post...
WHAT5
HOW WHAT WHATW HWIDWKDPEJFSIOFWIOFJREIOFJREOIJFEROIF
Show post...
lamp said it
eee
Show post...
r
HOW THE FUCK DO YOU COLOR TEXT
Show post...
i love to paint
what hiw
.rainbow-text { font-family: Arial Black, Gadget, sans-serif; text-align: center; font-weight: bold; font-size: 50px; text-shadow: #A3A3A3 1px 1px 0px; } .rainbow-text .block-line > span { display: inline-block; }
Show post...
.animated-rainbow { font-size: 42px; font-family: Arial Black, Gadget, sans-serif; background: linear-gradient(to left, #f00, #ff2b00, #f50, #ff8000, #fa0, #ffd500, #ff0, #d4ff00, #af0, #80ff00, #5f0, #2bff00, #0f0, #00ff2a, #0f5, #00ff80, #0fa, #00ffd5, #0ff, #00d5ff, #0af, #0080ff, #05f, #002aff, #00f, #2b00ff, #50f, #8000ff, #a0f, #d400ff, #f0f, #ff00d4, #f0a, #ff0080, #f05, #ff002b, #f00); animation: rainbow-move-left-right 5s linear infinite alternate; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } @keyframes rainbow-move-left-right { 0% {background-position: 0 0 } 100% {background-position: -500px 0} }
fail
whuh
Show post...
??????????
colored text fail
{ font-family: Arial Black, Gadget, sans-serif; text-align: center; font-weight: bold; font-size: 50px; text-shadow: #A3A3A3 1px 1px 0px; } .rainbow-text .block-line > span { display: inline-block; }
what the fuck is this
why did you even post this
What da fk brah
woah dnb mentioned yay!!
Sigma!
Show post...
ok
hmmm
FAKE SPRUNI NO PLAY 😢😢😢
Show post...
wut
Sad
k
Show post...
istg HOW DO I COLOR TEXT
Show post...
Show post...
and then put (text)
Show post...
what
Show post...
STOP
Show post...
Show post...
whger is theat
Show post...
settings
html (coding)
Show post...
fr bro im gonna play hangman with myself
Sounds cute, I'ma do that too
is this crashing itch?
Show post...
yes
Show post...
oh wait hi ur back :D
Indeed
hi
Show post...
www
Show post...
grr
Show post...
lamp how do i do color text
not sigma enough
Show post...
im not telling you
thank you
Show post...
youre welcome
no problem
i just saw somebody harrassing someone just because they LIKE sprunki🙏
their a dw fan
🫂🫂🫂
Show post...
i will make you turn into a carrot
What if i turn YOU into a carrot 🌟🌟💫🌟
Show post...
boom ur a carrot
You little-
Show post...
does this color work
Show post...
oh it does
Show post...
yea ik its cuz i just put a random hex there and i didnt know if the hex would work
Show post...
SKIBIDIII
Show post...
hover your mouse over it