×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Profils
  • /
  • Playcrazek
Profil
Playcrazek #0000
    • Playcrazek#0000
    • Profil
    • Derniers messages
« Citoyen »

Date d'inscription : 12/10/2015

Communauté : Internationale
Messages : 21

Prestige : 0
Niveau : 1

Hors ligne


i = 0
padding = 17

color = "rouge"

function eventLoop(currentTime, timeRemaining)
if color == "rouge" then
r = string.format("%x", 255)
g = string.format("%x", i)
b = string.format("%x", 0)
elseif color == "vert" then
r = string.format("%x", 255 - i)
g = string.format("%x", 255)
b = string.format("%x", 0)
elseif color == "bleu" then
r = string.format("%x", 0)
g = string.format("%x", 255)
b = string.format("%x", i)
elseif color == "violet" then
r = string.format("%x", i)
g = string.format("%x", 255 - i)
b = string.format("%x", 255)
elseif color == "violet->rouge" then
r = string.format("%x", 255)
g = string.format("%x", 0)
b = string.format("%x", 255 - i)
end

if string.len(r) == 1 then
r = "0" .. r
end
if string.len(g) == 1 then
g = "0" .. g
end
if string.len(b) == 1 then
b = "0" .. b
end

hex = "0x" .. r .. g .. b

tfm.exec.setNameColor("Juuuliiieeen", hex)

if i == 255 then
i = 0
if color == "rouge" then
color = "vert"
elseif color == "vert" then
color = "bleu"
elseif color == "bleu" then
color = "violet"
elseif color == "violet" then
color = "violet->rouge"
elseif color == "violet->rouge" then
color = "rouge"
end
else
i = i + padding
end
end
  • Profils
  • /
  • Playcrazek
Profil
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27