first
This commit is contained in:
commit
59426d62fb
102 changed files with 42796 additions and 0 deletions
25
Controls/Paint/Tools/Bristle.js
Normal file
25
Controls/Paint/Tools/Bristle.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
////////////////////////////////////////////////////////////
|
||||
//// © Microsoft. All rights reserved. ////
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
(function (AppNS) {
|
||||
'use strict';
|
||||
|
||||
// A Bristle simulates the bristle on a brush.
|
||||
var Bristle = WinJS.Class.define(
|
||||
|
||||
// Constructor
|
||||
function () {
|
||||
this.color = new AppNS.Painter.Graphics.Color(); // The color of the bristle
|
||||
this.width = 2; // The bristle width is 2px
|
||||
},
|
||||
|
||||
// Variables and Methods
|
||||
{}
|
||||
);
|
||||
|
||||
WinJS.Namespace.defineWithParent(AppNS, "Painter.Tools", {
|
||||
Bristle: Bristle
|
||||
});
|
||||
|
||||
})(Microsoft.Paint);
|
||||
Reference in a new issue