generate gamma curve