Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta name="description" content="Convert RGBA to RGB">
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <meta charset=utf-8 />
  <title>Vladimir Bergier</title>
  <style>
    div {
      width: 100%;
      display: flex;
      justify-content: center;
      margin: 10px
    }
    p {
      padding: 0 10px;
    }
    p:nth-child(even) {
      color: white;
    }
  </style>
</head>
<body>
  <div>
    <p>desiredRGBColorString = convertRGBAtoRGBIfNeeded(anyCssColorString)</p>
  </div>
  <div id="rgba">
    <p>source (usually rgba) color</p>
    <p>source (usually rgba) color</p>
  </div>  
  <div id="rgb">
    <p>result rgb color</p>
    <p>result rgb color</p>
  </div>  
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
vladimirbrasilpro
0viewers