Jump to content




cPrint - Color Codes!

utility api lua

  • You cannot reply to this topic
3 replies to this topic

#1 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 19 April 2013 - 07:28 AM

New topic


Spoiler


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 19 April 2013 - 04:17 PM

Looks very nice! I have just 2 improvements...

here is an improvement to your cCode function
function cCode(h)
  return 2 ^ tonumber(h, 16)
end

and your toCode, could become
function toCode(n)
  return string.format('%x', n)
end


#3 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 19 April 2013 - 09:31 PM

I'll improve it when I'll get home :)

#4 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 21 April 2013 - 03:56 AM

Version 1.2 is out!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users