Tags » Ashish Kumar

How to mask a dom element in createjs

I am trying to mask a dom element in createjs . but masking is not working with dom element in createjs

var stage;

function init() {
    stage = new createjs.Stage("my_canvas");

    var de = new createjs.DOMElement(document.getElementById("page"));
    stage.addChild(de);

    var shape = new createjs.Shape();
    shape.graphics.beginFill('#000').drawRect(0, 0, 100, 100);
    stage.addChild(shape);
    de.mask = shape;

    stage.update();
}  
… 12 more words
Recent Questions - Stack Overflow

How to mask a dom element in createjs

I am trying to mask a dom element in createjs . but masking is not working with dom element in createjs

<script>
var stage;
function init()
{
stage = new createjs.Stage("my_canvas");

var de = new createjs.DOMElement(document.getElementById("page"));
stage.addChild(de);

var shape = new createjs.Shape();
shape.graphics.beginFill('#000').drawRect(0,0,100,100);
stage.addChild(shape);
de.mask = shape;

stage.update();
… 12 more words
Recent Questions - Stack Overflow

How we can make EditText with thick border(some color) and with white background in android?

I got some code but not perfact-

<shape xmlns:android="http://ift.tt/nIICcg" 
       android:thickness="0dp" 
       android:shape="rectangle">

  <stroke android:width="2dp"
         android:color="#00cc33"/>

</shape>

it gives border color but background color is black.
Thank’s in advance… 13 more words

Recent Questions - Stack Overflow

Writing onto a file in Prolog

Hi I have the following code:

show_result(Squares,MaxRow,MaxCol) :-
    show_result(Squares,MaxRow,MaxCol,1), nl.

show_result(_,MaxRow,_,Row) :- Row > MaxRow, !.
show_result(Squares,MaxRow,MaxCol,Row) :- 
    show_result(Squares,MaxRow,MaxCol,Row,1), nl,
    Row1 is Row+1, show_result(Squares,MaxRow,MaxCol,Row1).

show_result(_,_,MaxCol,_,Col) :- Col > MaxCol, !. 215 more words
Recent Questions - Stack Overflow

How to Show Image Resolution to from its URL

I am creating a Website to share wallpapers that can be downloaded and used ion users Desktop. But I am not able to find a way to show its resolution to my visitors. 76 more words

Recent Questions - Stack Overflow

Not able to assign value to a Field in the class

Just starting off on my iPhone / Objective C programming and got stuck. I know this is going to be simple and straightforward

I have defined a class. 99 more words

Recent Questions - Stack Overflow