daemon (returns to white).
<script type="text/javascript">
- document.write('<div class="img img-50" id="docsvg-channel-subbuf-anim"></div>');
+ document.write('<div class="anim img img-50" id="docsvg-channel-subbuf-anim"></div>');
$(document).ready(function() {
var doc = SVG('docsvg-channel-subbuf-anim');
doc.viewbox(0, 0, 2, 2);
- var rb = rbBuildStdAnimated(doc, {
+ var stdRb = rbBuildStdAnimated(doc, {
div: 5,
oR: 0.97,
evDur: 300,
consumerAfter: 10
});
- rb.getGroup().move(1, 1);
+ stdRb.rb.getGroup().move(1, 1);
+ rbSetParentPlayIcon(doc, function() {
+ rbStdStart(stdRb);
+ });
});
</script>
following configurations have the same ring buffer total size:
<script type="text/javascript">
- document.write('<div class="img img-100" id="docsvg-channel-subbuf-size-vs-count-anim"></div>');
+ document.write('<div class="anim img img-100" id="docsvg-channel-subbuf-size-vs-count-anim"></div>');
$(document).ready(function() {
var doc = SVG('docsvg-channel-subbuf-size-vs-count-anim');
doc.viewbox(0, 0, 4.25, 2);
- var rb2 = rbBuildStdAnimated(doc, {
+ var stdRb2 = rbBuildStdAnimated(doc, {
div: 2,
oR: 0.97,
evDur: 300,
evPerSubBuf: 17,
consumerAfter: 25
});
- var rb16 = rbBuildStdAnimated(doc, {
+ var stdRb16 = rbBuildStdAnimated(doc, {
div: 8,
oR: 0.97,
evDur: 300,
consumerAfter: 6
});
- rb2.getGroup().move(1, 1);
- rb16.getGroup().move(3.25, 1);
+ stdRb2.rb.getGroup().move(1, 1);
+ stdRb16.rb.getGroup().move(3.25, 1);
+ rbSetParentPlayIcon(doc, function() {
+ rbStdStart(stdRb2);
+ rbStdStart(stdRb16);
+ });
});
</script>
trace files periodically in case of a low event throughput:
<script type="text/javascript">
- document.write('<div class="img img-50" id="docsvg-channel-switch-timer"></div>');
+ document.write('<div class="anim img img-50" id="docsvg-channel-switch-timer"></div>');
$(document).ready(function() {
var doc = SVG('docsvg-channel-switch-timer');
rb.addEvent(curSubBuf % div, evDur, onEventAdded);
};
- rb.addEvent(0, evDur, onEventAdded);
rb.markSubBuf(0, 'cur');
-
rb.getGroup().move(1, 1);
+ rbSetParentPlayIcon(doc, function() {
+ rb.addEvent(0, evDur, onEventAdded);
+ });
});
</script>