v0.0.2
based upon an example by Lee Stemkoski.
Property | Type | Description | Default Value |
---|---|---|---|
color | string | color name or value | 'red' |
scale | number | relative size to entity | 1.05 |
pulse | boolean | whether to pulse | false |
frequency | number | rate of pulse | 1 |
entity.components.outline.setColor('purple');
entity.components.outline.pulse(1.5);
entity.components.outline.stopPulse();
<script src="aframe-outline.min.js"></script>
<a-sphere outline></a-sphere>
<a-sphere outline="color:green ; pulse:true"></a-sphere>
const s = document.createElement('a-sphere');
s.setAttribute('outline','color:orange');
setTimeout( _=>{
s.components.outline.setColor('yellow');
s.components.outline.pulse();
} , 5000);