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...
bye chat
bye bye
Show post...
ybreeeee
Show post...
cya
bye
blocked sliver yay
yay
huh
if tgis doesnt work im gonna IMPALE MYSELF on a BRICK
yay!!
it worked, you get to live for another minute!
is this a actual color
yeah its coral
wow it is
Show post...
you stupid
Sick imma talk like this from now on
github.com
a random github link bc why not
what
Ben drowned
Howdy Chat
hi I guess
does it work
k it does
Show post...
tis white
Show post...
“tis” 💔💔💔💔💔 its ts
Show post...
Show post...
ok amal i wont eat you
Phew
Show post...
you escaped this time
Show post...
oh wait you dont put the parentheses
(test)
u have to endable the html5 thing in settings and markdown
imagine having hands
Show post...
i found you
why u leak my face 😡😡😡😡😡
Show post...
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