For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
import elemental2.CanvasRenderingContext2D; | |
import elemental2.Document; | |
import elemental2.Global; | |
import elemental2.HTMLBodyElement; | |
import elemental2.HTMLCanvasElement; | |
/** | |
* <inherits name="elemental2"/> | |
*/ | |
public class Elemental2CanvasCircleExample implements EntryPoint { |
// MWWebSnapshot | |
// | |
// Created by Jim McGowan on 08/09/2010. | |
// Copyright 2010 Jim McGowan. All rights reserved. | |
// | |
// This code is made available under the BSD license. | |
// Please see the accompanying license.txt file | |
// or view the license online at http://www.malkinware.com/developer/License.txt | |
// |
Have tested these instructions successfully under Ubuntu 16.04LTS and 14.04LTS.
- Create Ubuntu server instance under Parallels (obviously).
- Start VM, goto Actions - Install Parallels Tools... to mount the ISO image.
- Note: if this fails, or updating tools for an existing guest you can do the following:
- Goto
Devices
>CD/DVD 1
>Connect Image...
. - Select the following ISO image:
/Applications/Parallels Desktop/Contents/Resources/Tools/prl-tools-lin.iso
. - This will mount the tools CD image.
- From the terminal, run the following commands:
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
var app = {}; | |
app.$colors = $('canvas.color-palette'); | |
app.colorctx = app.$colors[0].getContext('2d'); | |
// Build Color palette | |
app.buildColorPalette = function() { | |
var gradient = app.colorctx.createLinearGradient(0, 0, app.$colors.width(), 0); | |
// Create color gradient |
Copied from https://www.jeffgodwyll.com/posts/2016/letsencrypt
Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. Let’s Encrypt is a service provided by the Internet Security Research Group (ISRG)
This post won't go into details as to what Let's Encrypt is about. We should probably read the FAQs if we want to learn more.
Until the Google App Engine Team fully automate the process of using Let's Encrypt on Google App Engine or even provide some sort of API to handle certs, we'll probably have to find ways of either automating the process just a little bit or stick to some other easier cert authority.