🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Ocl hex to dec
(Adding message template to the top of the page)
(Updated Edited template to July 12, 2025.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
  let parts='#e66465'.tolower.ToCharArray->collect(c|'#123456789abcdef'->tochararray->indexof0(c)) in(
  let parts='#e66465'.tolower.ToCharArray->collect(c|'#123456789abcdef'->tochararray->indexof0(c)) in(
   (parts.at0(1)*16+parts.at0(2))*256*256+
   (parts.at0(1)*16+parts.at0(2))*256*256+
Line 14: Line 14:
  )
  )
  [[Category:OCL]]
  [[Category:OCL]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 05:59, 20 January 2025

This page was created by Hans.karlsen on 2021-02-09. Last edited by Edgar on 2025-01-20.
let parts='#e66465'.tolower.ToCharArray->collect(c|'#123456789abcdef'->tochararray->indexof0(c)) in(
  (parts.at0(1)*16+parts.at0(2))*256*256+
  (parts.at0(3)*16+parts.at0(4))*256+
  (parts.at0(5)*16+parts.at0(6))
)

Convert hex to rgb color:

let parts='#e66465'.tolower.ToCharArray->collect(c|'#123456789abcdef'->tochararray->indexof0(c)) in
(
(parts.at0(1)*16+parts.at0(2)).ToString()+','+
(parts.at0(3)*16+parts.at0(4)).ToString()+','+
(parts.at0(5)*16+parts.at0(6)).ToString()
)
MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments