/paypal-logo-canvas

a simple javascript lib to draw PayPal Logo on a given canvas

Primary LanguageJavaScriptApache License 2.0Apache-2.0

PayPal Logo On Canvas

a simple javascript library to draw PayPal Logo on a given canvas.

PayPal Logo

installation

$ bower install paypal-logo-canvas

usage

  // include the library in any browswer enviroment.
  //  - AMD or
  //  - CommonJS or 
  //  - just a simple global.

  // call the draw function on the exposed object
  // and supply a canvasElement and size of the
  // PayPal logo to draw.

  // assuming a canvas element with ID 'paypal-logo' 
  // exists in the DOM, the below code draws the PayPal 
  // logo of size 200px onto that canvas.

  var canvasEl = document.getElementById('paypal-logo');
  PayPalLogoCanvas.draw(canvasEl, 200);

example

a blog post about this library

http://samsel.github.io/2014/09/20/the-paypal-logo-challenge/