List<NamedEffect> getNamedEffectList() { List<NamedEffect> nes = new ArrayList<NamedEffect>(); nes.add(new NamedEffect("colored", new Shadow() {{ setColor(Color.GREEN);}})); nes.add(new NamedEffect("height: 40", new Shadow() {{ setHeight(40);}})); nes.add(new NamedEffect("width: 40", new Shadow() {{ setWidth(40);}})); nes.add(new NamedEffect("radius: 40", new Shadow() {{ setRadius(40);}})); for (final BlurType bt : BlurType.values()) { nes.add(new NamedEffect("bt:" + bt.name(), new Shadow() {{ setBlurType(bt);}})); } return nes; }
private void mSpriteSelect(Sprite sprite, DInfo dinfo) { sprite.setEffect(new Shadow(4.0f, Color.valueOf(dinfo.get(K_COLOR)))); }